| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 8 | public function __construct( |
|
| 20 | Identity $identity, |
||
| 21 | SecretKey $secretKey, |
||
| 22 | SetInterface $recoveryCodes |
||
| 23 | ) { |
||
| 24 | 8 | if ((string) $recoveryCodes->type() !== RecoveryCode::class) { |
|
| 25 | 1 | throw new \TypeError(sprintf( |
|
| 26 | 1 | 'Argument 3 must be of type SetInterface<%s>', |
|
| 27 | 1 | RecoveryCode::class |
|
| 28 | )); |
||
| 29 | } |
||
| 30 | |||
| 31 | 7 | $this->identity = $identity; |
|
| 32 | 7 | $this->secretKey = $secretKey; |
|
| 33 | 7 | $this->recoveryCodes = $recoveryCodes; |
|
| 34 | 7 | } |
|
| 54 |