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

MercenaryCampVisitEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
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