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