Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function __construct(bool $smsEnabled, bool $safeStoreCodeEnabled) |
||
38 | { |
||
39 | if ($smsEnabled === false && $safeStoreCodeEnabled === false) { |
||
40 | throw new RecoveryTokenConfigurationException('The SMS or safe-store code recovery token must be enabled'); |
||
41 | } |
||
42 | $this->smsEnabled = $smsEnabled; |
||
43 | $this->safeStoreCodeEnabled = $safeStoreCodeEnabled; |
||
44 | } |
||
56 |