Passed
Push — master ( f8b788...97b7c6 )
by Paweł
03:13
created

SecretKnowledge::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
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 static function getName(): string
17
    {
18
        return 'Secret Knowledge';
19
    }
20
21
    public static function getRequiredTalentPoints(): TalentPoints
22
    {
23
        return new TalentPoints(6);
24
    }
25
26
    public function __toString(): string
27
    {
28
        return "Secret Knowledge at {$this->ascension}";
29
    }
30
}
31