for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AardsGerds\Game\Event\Story\FirstChapter\FightWolf;
use AardsGerds\Game\Entity\Beast\Animal\Wolf;
use AardsGerds\Game\Entity\EntityCollection;
use AardsGerds\Game\Player\Player;
use AardsGerds\Game\Event\DecisionCollection;
use AardsGerds\Game\Event\FightEvent;
final class FightWolfEvent extends FightEvent
{
public function __construct(Player $player, Wolf $wolf)
parent::__construct(
new FightWolfContext(),
new DecisionCollection([]),
$player,
new EntityCollection([$wolf]),
);
}