Passed
Push — master ( 085587...41d27c )
by Paweł
03:39
created

MercenaryCampVisitEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 5
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Event\Story\FirstChapter\MercenaryCamp;
6
7
use AardsGerds\Game\Event\DecisionCollection;
8
use AardsGerds\Game\Event\TownVisitEvent;
9
use AardsGerds\Game\Location\Town\MercenaryCamp;
10
use AardsGerds\Game\Player\Player;
11
12
final class MercenaryCampVisitEvent extends TownVisitEvent
13
{
14
    public function __construct(Player $player)
15
    {
16
        parent::__construct(
17
            new MercenaryCampVisitContext(),
18
            new DecisionCollection([]),
19
            $player,
20
            new MercenaryCamp(),
21
        );
22
    }
23
}
24