Passed
Push — master ( 954430...fcf71b )
by Paweł
02:57
created

ProtectionOfTheGods::__toString()   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 0
Metric Value
eloc 1
c 0
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\EighthAscension;
6
7
use AardsGerds\Game\Build\Talent\Effect\EffectCollection;
8
use AardsGerds\Game\Build\Talent\Effect\Immortality;
9
use AardsGerds\Game\Build\Talent\SecretKnowledge\Ascension;
10
use AardsGerds\Game\Build\Talent\SecretKnowledge\SecretKnowledgeTalent;
11
use AardsGerds\Game\Build\Talent\TalentPoints;
12
13
final class ProtectionOfTheGods implements SecretKnowledgeTalent
14
{
15
    public function getEffects(): EffectCollection
16
    {
17
        return new EffectCollection([new Immortality()]);
18
    }
19
20
    public static function getName(): string
21
    {
22
        return 'Protection Of The Gods';
23
    }
24
25
    public static function getDescription(): string
26
    {
27
        return 'You are immune to mortal wounds and illness.';
28
    }
29
30
    public static function getRequiredTalentPoints(): TalentPoints
31
    {
32
        return new TalentPoints(20);
33
    }
34
35
    public static function getRequiredAscension(): Ascension
36
    {
37
        return Ascension::eighthAscension();
38
    }
39
40
    public function __toString(): string
41
    {
42
        return self::getName();
43
    }
44
}
45