public function __construct(Player $player, Block $bed) { $this->player = $player; $this->bed = $bed; }