Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| CRLStatus | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| isRevoked | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| isIssued | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** |
| 6 | * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors |
| 7 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 8 | */ |
| 9 | |
| 10 | namespace OCA\Libresign\Enum; |
| 11 | |
| 12 | enum CRLStatus: string { |
| 13 | case ISSUED = 'issued'; |
| 14 | case REVOKED = 'revoked'; |
| 15 | |
| 16 | public function isRevoked(): bool { |
| 17 | return $this === self::REVOKED; |
| 18 | } |
| 19 | |
| 20 | public function isIssued(): bool { |
| 21 | return $this === self::ISSUED; |
| 22 | } |
| 23 | } |