public function __construct($x, $y, $text, $font = null, $color = null, $size = null) { parent::__construct($x, $y); $this->text = $text; $this->font = $font; $this->color = $color; $this->size = $size; }
public function __construct($x, $y, Image $partImage) { parent::__construct($x, $y); $this->partImage = $partImage; }