| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class UserVerificationData |
||
| 6 | { |
||
| 7 | public ?int $id; |
||
| 8 | public ?int $userId; |
||
| 9 | public ?string $token; |
||
| 10 | public ?int $expiresAt; |
||
| 11 | public ?string $usedAt = null; |
||
| 12 | public ?string $createdAt; |
||
| 13 | |||
| 14 | 16 | public function __construct(array $verificationData = []) |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Returns values of object as array for database. |
||
| 26 | * |
||
| 27 | * The array keys MUST match with the database column names. |
||
| 28 | * |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | 17 | public function toArrayForDatabase(): array |
|
| 43 |