y = $y; $this->x = $x; $this->item = $item; } public function copyFrom(FloorObject $o): void { $this->y = $o->y; $this->x = $o->x; $this->item = $o->item; } }