Passed
Push — master ( 888025...8927c7 )
by Paweł
03:33
created

WolfEncounterEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 6
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 10
ccs 0
cts 6
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Event\Story\FirstChapter\WoodsTravel\WolfEncounter;
6
7
use AardsGerds\Game\Entity\Beast\Animal\Wolf;
8
use AardsGerds\Game\Event\DecisionCollection;
9
use AardsGerds\Game\Event\EncounterEvent;
10
11
final class WolfEncounterEvent extends EncounterEvent
12
{
13
    public function __construct()
14
    {
15
        $subject = new Wolf();
16
17
        parent::__construct(
18
            new WolfEncounterContext(),
19
            new DecisionCollection([
20
                new FightWolfDecision($subject),
21
            ]),
22
            $subject,
23
        );
24
    }
25
}
26