Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| RequireSetupOk | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getTemplate | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2020-2024 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(Attribute::TARGET_METHOD)] |
| 14 | class RequireSetupOk { |
| 15 | public function __construct( |
| 16 | protected string $template = 'external', |
| 17 | ) { |
| 18 | } |
| 19 | |
| 20 | public function getTemplate(): string { |
| 21 | return $this->template; |
| 22 | } |
| 23 | } |