WoodsTravelEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
dl 0
loc 8
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Event\Story\FirstChapter\WoodsTravel;
6
7
use AardsGerds\Game\Event\Decision\DecisionCollection;
8
use AardsGerds\Game\Event\Decision\VisitDecision;
9
use AardsGerds\Game\Event\Story\FirstChapter\MercenaryCamp\MercenaryCampVisitEvent;
10
use AardsGerds\Game\Event\TravelEvent;
11
12
final class WoodsTravelEvent extends TravelEvent
13
{
14
    public function __construct()
15
    {
16
        parent::__construct(
17
            new WoodsTravelContext(),
18
            new DecisionCollection([
19
                new VisitDecision(new MercenaryCampVisitEvent()),
20
            ]),
21
        );
22
    }
23
}
24