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; } public function getX() : int { return $this->x; } public function getY() : int { return $this->y; } }