Passed
Push — master ( 5a7d8c...49f3d4 )
by Paweł
02:50
created

SecretKnowledge   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 29
ccs 0
cts 12
cp 0
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getName() 0 3 1
A getAscension() 0 3 1
A getDescription() 0 3 1
A getRequiredTalentPoints() 0 3 1
A __toString() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Build\Talent\SecretKnowledge;
6
7
use AardsGerds\Game\Build\Talent\Talent;
8
use AardsGerds\Game\Build\Talent\TalentPoints;
9
10
final class SecretKnowledge implements Talent, \Stringable
11
{
12
    public function __construct(
13
        private Ascension $ascension,
14
    ) {}
15
16
    public function getAscension(): Ascension
17
    {
18
        return $this->ascension;
19
    }
20
21
    public static function getName(): string
22
    {
23
        return 'Secret Knowledge';
24
    }
25
26
    public static function getDescription(): string
27
    {
28
        return 'Also known as Etheurgy is some places. Art of Etherum wielding.';
29
    }
30
31
    public static function getRequiredTalentPoints(): TalentPoints
32
    {
33
        return new TalentPoints(6);
34
    }
35
36
    public function __toString(): string
37
    {
38
        return "Secret Knowledge at {$this->ascension}";
39
    }
40
}
41