Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| PrivateValidation | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| allowValidSignRequestUuid | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors |
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | */ |
| 8 | |
| 9 | namespace OCA\Libresign\Middleware\Attribute; |
| 10 | |
| 11 | use Attribute; |
| 12 | |
| 13 | #[Attribute] |
| 14 | class PrivateValidation { |
| 15 | public function __construct( |
| 16 | private bool $allowValidSignRequestUuid = false, |
| 17 | ) { |
| 18 | } |
| 19 | |
| 20 | public function allowValidSignRequestUuid(): bool { |
| 21 | return $this->allowValidSignRequestUuid; |
| 22 | } |
| 23 | } |