FightWolfEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Event\Story\FirstChapter\WoodsTravel\FightWolf;
6
7
use AardsGerds\Game\Build\Experience;
8
use AardsGerds\Game\Entity\Beast\Animal\Wolf;
9
use AardsGerds\Game\Entity\EntityCollection;
10
use AardsGerds\Game\Event\Decision\DecisionCollection;
11
use AardsGerds\Game\Event\Decision\TravelDecision;
12
use AardsGerds\Game\Event\FightEvent;
13
use AardsGerds\Game\Event\Story\FirstChapter\WoodsTravel\WoodsTravelEvent;
14
15
final class FightWolfEvent extends FightEvent
16
{
17
    public function __construct(Wolf $wolf)
18
    {
19
        parent::__construct(
20
            new FightWolfContext(),
21
            new DecisionCollection([
22
                new TravelDecision(new WoodsTravelEvent()),
23
            ]),
24
            new EntityCollection([$wolf]),
25
            new Experience(200),
26
        );
27
    }
28
}
29