Passed
Push — master ( a55f22...56813c )
by Paweł
02:35
created

FightWolfEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 7
ccs 0
cts 5
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Event\Story\FirstChapter\FightWolf;
6
7
use AardsGerds\Game\Entity\Beast\Animal\Wolf;
8
use AardsGerds\Game\Entity\EntityCollection;
9
use AardsGerds\Game\Player\Player;
10
use AardsGerds\Game\Event\DecisionCollection;
11
use AardsGerds\Game\Event\FightEvent;
12
13
final class FightWolfEvent extends FightEvent
14
{
15
    public function __construct(Player $player, Wolf $wolf)
16
    {
17
        parent::__construct(
18
            new FightWolfContext(),
19
            new DecisionCollection([]),
20
            $player,
21
            new EntityCollection([$wolf]),
22
        );
23
    }
24
}
25