Amuril::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 8
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 11
ccs 9
cts 9
cp 1
crap 1
rs 10
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 Amuril extends GreatSword implements RebredirWeapon
16
{
17
    use EtherumVessel;
18
19 1
    public function __construct(
20
        private Etherum $etherumLoad,
21
    ) {
22 1
        parent::__construct(
23 1
            'Amuril',
24 1
            'Ancestral sword of House Maane. His name means "Poisoned Soul".',
25 1
            new Coin(10000),
26 1
            new Coin(10000),
27 1
            new Damage(180),
28 1
            WeaponMasteryLevel::masterOfFirstTier(),
29 1
            new Strength(100),
30
        );
31 1
    }
32
}
33