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