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