| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 10 | class BackupCode |
||
| 11 | { |
||
| 12 | use Injectable; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $code = ''; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $hash = ''; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $code |
||
| 26 | * @param string $hash |
||
| 27 | */ |
||
| 28 | public function __construct(string $code, string $hash) |
||
| 29 | { |
||
| 30 | $this->code = $code; |
||
| 31 | $this->hash = $hash; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getCode(): string |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getHash(): string |
||
| 42 | } |
||
| 43 | } |
||
| 44 |