Passed
Push — master ( 798624...f2c7f4 )
by Paweł
03:25
created

Haze::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Build\Talent\SecretKnowledge\FirstAscension;
6
7
use AardsGerds\Game\Build\Attribute\Damage;
8
use AardsGerds\Game\Build\Attribute\Etherum;
9
use AardsGerds\Game\Build\Talent\Effect\BlockImmunity;
10
use AardsGerds\Game\Build\Talent\Effect\EffectCollection;
11
use AardsGerds\Game\Build\Talent\Effect\Stun;
12
use AardsGerds\Game\Build\Talent\SecretKnowledge\Ascension;
13
use AardsGerds\Game\Build\Talent\SecretKnowledge\SecretKnowledgeTalent;
14
use AardsGerds\Game\Build\Talent\TalentPoints;
15
use AardsGerds\Game\Fight\EtherumAttack;
16
use JetBrains\PhpStorm\Immutable;
17
18
#[Immutable]
19 1
final class Haze implements EtherumAttack, SecretKnowledgeTalent
20
{
21
    public function getDamage(): Damage
22
    {
23
        return new Damage(0);
24
    }
25
26
    public function getEffects(): EffectCollection
27
    {
28
        return new EffectCollection([new Stun()]);
29
    }
30
31
    public static function getEtherumCost(): Etherum
32
    {
33
        return new Etherum(1);
34
    }
35
36
    public static function getName(): string
37
    {
38
        return 'Haze';
39
    }
40
41
    public static function getDescription(): string
42
    {
43
        return 'Gives your enemy a break.';
44
    }
45
46
    public static function getRequiredTalentPoints(): TalentPoints
47
    {
48
        return new TalentPoints(2);
49
    }
50
51
    public static function getRequiredAscension(): Ascension
52
    {
53
        return Ascension::firstAscension();
54
    }
55
56
    public function __toString(): string
57
    {
58
        return self::getName();
59
    }
60
}
61