Passed
Push — master ( 775557...f4ac78 )
by Paweł
03:06
created

DoubleClaw::getEffects()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Build\Talent\Natural;
6
7
use AardsGerds\Game\Build\Attribute\Damage;
8
use AardsGerds\Game\Build\Talent\Effect\EffectCollection;
9
use AardsGerds\Game\Build\Talent\Talent;
10
use AardsGerds\Game\Build\Talent\TalentPoints;
11
use AardsGerds\Game\Fight\NaturalAttack;
12
13
final class DoubleClaw implements NaturalAttack, Talent
14
{
15 2
    public function getEffects(): EffectCollection
16
    {
17 2
        return new EffectCollection([]);
18
    }
19
20 2
    public function getDamage(): Damage
21
    {
22 2
        return new Damage(10);
23
    }
24
25 2
    public static function getName(): string
26
    {
27 2
        return 'Double Claw';
28
    }
29
30
    public static function getDescription(): string
31
    {
32
        return 'Attack with double claws.';
33
    }
34
35
    public static function getRequiredTalentPoints(): TalentPoints
36
    {
37
        return new TalentPoints(0);
38
    }
39
40 2
    public function __toString(): string
41
    {
42 2
        return self::getName();
43
    }
44
}
45