RustyShortSword::__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
cc 1
eloc 8
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 10
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\ShortSword;
6
7
use AardsGerds\Game\Build\Attribute\Damage;
8
use AardsGerds\Game\Build\Attribute\Strength;
9
use AardsGerds\Game\Build\Talent\WeaponMastery\WeaponMasteryLevel;
10
use AardsGerds\Game\Inventory\Coin;
11
12
final class RustyShortSword extends ShortSword
13
{
14 4
    public function __construct()
15
    {
16 4
        parent::__construct(
17 4
            'Rusty Short Sword',
18 4
            'Blade is covered in little rust, but it seems to be usable.',
19 4
            new Coin(1),
20 4
            new Coin(10),
21 4
            new Damage(10),
22 4
            WeaponMasteryLevel::novice(),
23 4
            new Strength(5),
24
        );
25 4
    }
26
}
27