Wolf::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 10
ccs 9
cts 9
cp 1
rs 10
c 1
b 0
f 0
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 3
    public function __construct()
21
    {
22 3
        parent::__construct(
23 3
            'Wolf',
24 3
            new Health(30),
25 3
            new Etherum(0),
26 3
            new Strength(5),
27 3
            new Initiative(10),
28 3
            new TalentCollection([new Bite(), new DoubleClaw()]),
29 3
            new Inventory([new WolfFur()]),
30
        );
31 3
    }
32
}
33