| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | abstract class AbstractChallenge implements ChallengeInterface |
||
| 14 | { |
||
| 15 | /** @var string */ |
||
| 16 | private $cpf; |
||
| 17 | |||
| 18 | /** @var int */ |
||
| 19 | private $attemptsLeft; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Challenge constructor. |
||
| 23 | * @param string $cpf |
||
| 24 | * @param int $attemptsLeft |
||
| 25 | */ |
||
| 26 | 15 | public function __construct(int $attemptsLeft, string $cpf) |
|
| 30 | 15 | } |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | 9 | public function getCpf(): string |
|
| 36 | { |
||
| 37 | 9 | return $this->cpf; |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | 8 | public function getAttemptsLeft(): int |
|
| 46 | } |
||
| 47 | } |
||
| 48 |