public function __construct(Player $player, $animation = self::ARM_SWING) { $this->player = $player; $this->animationType = $animation; }