MercenaryCampVisitEvent::__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\MercenaryCamp;
6
7
use AardsGerds\Game\Entity\Human\Mefadriel;
8
use AardsGerds\Game\Event\Decision\DecisionCollection;
9
use AardsGerds\Game\Event\Decision\DialogDecision;
10
use AardsGerds\Game\Event\Story\FirstChapter\MercenaryCamp\MeetMefadriel\MefadrielDialogEvent;
11
use AardsGerds\Game\Event\VisitEvent;
12
13
final class MercenaryCampVisitEvent extends VisitEvent
14
{
15
    public function __construct()
16
    {
17
        parent::__construct(
18
            new MercenaryCampVisitContext(),
19
            new DecisionCollection([
20
                new DialogDecision(new MefadrielDialogEvent(new Mefadriel())),
21
            ]),
22
        );
23
    }
24
}
25