WoodsTravelEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
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