y = $y; $this->x = $x; $this->dest = $dest; $this->flags = $flags; } public function copyFrom(Door $o): void { $this->y = $o->y; $this->x = $o->x; $this->dest = $o->dest; $this->flags = $o->flags; } }