Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Password | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cosray\Config; |
| 6 | |
| 7 | final class Password |
| 8 | { |
| 9 | public function __construct( |
| 10 | private readonly \Cosray\Config $config, |
| 11 | ) {} |
| 12 | |
| 13 | /** Whether new passwords are looked up in Have I Been Pwned. */ |
| 14 | public bool $breachCheck { |
| 15 | get => (bool) $this->config->get('password.breach_check'); |
| 16 | } |
| 17 | } |