| 1 | <?php  | 
            ||
| 15 | final class PasswordInfo extends ValueObject  | 
            ||
| 16 | { | 
            ||
| 17 | /** @var \DateTimeImmutable|null */  | 
            ||
| 18 | private $expirationDate;  | 
            ||
| 19 | |||
| 20 | /** @var \DateTimeImmutable|null */  | 
            ||
| 21 | private $expirationWarningDate;  | 
            ||
| 22 | |||
| 23 | public function __construct(?DateTimeImmutable $expirationDate = null, ?DateTimeImmutable $expirationWarningDate = null)  | 
            ||
| 28 | |||
| 29 | public function isPasswordExpired(): bool  | 
            ||
| 37 | |||
| 38 | public function hasExpirationDate(): bool  | 
            ||
| 42 | |||
| 43 | public function getExpirationDate(): ?DateTimeImmutable  | 
            ||
| 47 | |||
| 48 | public function hasExpirationWarningDate(): bool  | 
            ||
| 52 | |||
| 53 | public function getExpirationWarningDate(): ?DateTimeImmutable  | 
            ||
| 57 | }  | 
            ||
| 58 |