ProtectionOfTheGods::getEffects()   A
last analyzed

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
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
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
use JetBrains\PhpStorm\Immutable;
13
14
#[Immutable]
15
final class ProtectionOfTheGods implements SecretKnowledgeTalent
16
{
17
    public function getEffects(): EffectCollection
18
    {
19
        return new EffectCollection([new Immortality()]);
20
    }
21
22
    public static function getName(): string
23
    {
24
        return 'Protection Of The Gods';
25
    }
26
27
    public static function getDescription(): string
28
    {
29
        return 'You are immune to mortal wounds and illness.';
30
    }
31
32
    public static function getRequiredTalentPoints(): TalentPoints
33
    {
34
        return new TalentPoints(20);
35
    }
36
37
    public static function getRequiredAscension(): Ascension
38
    {
39
        return Ascension::eighthAscension();
40
    }
41
42
    public function __toString(): string
43
    {
44
        return self::getName();
45
    }
46
}
47