<?php
/**
* Klasa reprezentuje pojedynczą kartę
*/
class Karta {
private $kolor;
private $wartosc;
/**
*
* @param string $kolor kolor danej karty
* @param string $wartosc wartość danej karty
*/
public function __construct($kolor, $wartosc) {
$this->kolor = $kolor;
$this->wartosc = $wartosc;
}
/**
*
* @return String kolor karty
*/
public function getKolor() {
return $this->kolor;
}
/**
*
* @return String wartość karty
*/
public function getWartosc() {
return $this->wartosc;
}
}