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