x = $x; $this->y = $y; $this->weight = $weight; $this->isWalkable = $isWalkable; } public function isWalkable() : bool { return $this->isWalkable; } public function getWeight() : float { return $this->weight; } }