player = $player; } public function getBed() : Block{ return $this->bed; } }