Passed
Push — master ( 812b31...82efe3 )
by Paweł
02:52
created

Wolf::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 11
ccs 10
cts 10
cp 1
rs 9.9666
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Entity\Beast\Animal;
6
7
use AardsGerds\Game\Build\Attribute\Etherum;
8
use AardsGerds\Game\Build\Attribute\Health;
9
use AardsGerds\Game\Build\Attribute\Initiative;
10
use AardsGerds\Game\Build\Attribute\Strength;
11
use AardsGerds\Game\Build\Talent\Natural\Bite;
12
use AardsGerds\Game\Build\Talent\Natural\DoubleClaw;
13
use AardsGerds\Game\Build\Talent\TalentCollection;
14
use AardsGerds\Game\Entity\Entity;
15
use AardsGerds\Game\Inventory\Inventory;
16
use AardsGerds\Game\Inventory\Trophy\WolfFur;
17
18
final class Wolf extends Entity
19
{
20 1
    public function __construct()
21
    {
22 1
        parent::__construct(
23 1
            'Wolf',
24 1
            new Health(30),
25 1
            new Etherum(0),
26 1
            new Strength(5),
27 1
            new Initiative(10),
28 1
            new TalentCollection([new Bite(), new DoubleClaw()]),
29 1
            new Inventory([new WolfFur()]),
30 1
            null,
31
        );
32 1
    }
33
}
34