Wolf   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
dl 0
loc 12
ccs 9
cts 9
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 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