Passed
Push — master ( 812b31...82efe3 )
by Paweł
02:52
created

Bite::getName()   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 Bite implements NaturalAttack, Talent
14
{
15 1
    public function getEffects(): EffectCollection
16
    {
17 1
        return new EffectCollection([]);
18
    }
19
20 1
    public function getDamage(): Damage
21
    {
22 1
        return new Damage(5);
23
    }
24
25 1
    public static function getName(): string
26
    {
27 1
        return 'Bite';
28
    }
29
30
    public static function getDescription(): string
31
    {
32
        return 'Just a bite.';
33
    }
34
35
    public static function getRequiredTalentPoints(): TalentPoints
36
    {
37
        return new TalentPoints(0);
38
    }
39
40 1
    public function __toString(): string
41
    {
42 1
        return self::getName();
43
    }
44
}
45