<?phpnamespace App\Game;final class Door{ public int $y = Values::NONE; public int $x = 0; public int $dest = 0; public int $flags = 0; public function set(int $y, int $x, int $dest, int $flags): void { $this->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; }}