Protector   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Inventory\Weapon\GreatSword;
6
7
use AardsGerds\Game\Build\Attribute\Damage;
8
use AardsGerds\Game\Build\Attribute\Etherum;
9
use AardsGerds\Game\Build\Attribute\Strength;
10
use AardsGerds\Game\Build\Talent\WeaponMastery\WeaponMasteryLevel;
11
use AardsGerds\Game\Inventory\Coin;
12
use AardsGerds\Game\Inventory\Weapon\EtherumVessel;
13
use AardsGerds\Game\Inventory\Weapon\RebredirWeapon;
14
15
final class Protector extends GreatSword implements RebredirWeapon
16
{
17
    use EtherumVessel;
18
19 4
    public function __construct(
20
        private Etherum $etherumLoad,
21
    ) {
22 4
        parent::__construct(
23 4
            'Protector',
24 4
            'Legendary rebredir great sword. Once protected one of the Great Houses of Altfram.',
25 4
            new Coin(10000),
26 4
            new Coin(10000),
27 4
            new Damage(200),
28 4
            WeaponMasteryLevel::masterOfFirstTier(),
29 4
            new Strength(100),
30
        );
31 4
    }
32
}
33