MercenaryCampVisitEvent   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\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