Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
83.33% |
10 / 12 |
|
71.43% |
5 / 7 |
CRAP | |
0.00% |
0 / 1 |
| ConfigureCheckResult | |
83.33% |
10 / 12 |
|
71.43% |
5 / 7 |
7.23 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getResource | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getMessage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getTip | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getCategory | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| jsonSerialize | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors |
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | */ |
| 8 | |
| 9 | namespace OCA\Libresign\Service\SetupCheck; |
| 10 | |
| 11 | use JsonSerializable; |
| 12 | |
| 13 | class ConfigureCheckResult implements JsonSerializable { |
| 14 | public function __construct( |
| 15 | private string $status, |
| 16 | private string $resource, |
| 17 | private string $message, |
| 18 | private string $tip, |
| 19 | private string $category, |
| 20 | ) { |
| 21 | } |
| 22 | |
| 23 | public function getStatus(): string { |
| 24 | return $this->status; |
| 25 | } |
| 26 | |
| 27 | public function getResource(): string { |
| 28 | return $this->resource; |
| 29 | } |
| 30 | |
| 31 | public function getMessage(): string { |
| 32 | return $this->message; |
| 33 | } |
| 34 | |
| 35 | public function getTip(): string { |
| 36 | return $this->tip; |
| 37 | } |
| 38 | |
| 39 | public function getCategory(): string { |
| 40 | return $this->category; |
| 41 | } |
| 42 | |
| 43 | #[\Override] |
| 44 | public function jsonSerialize(): array { |
| 45 | return [ |
| 46 | 'status' => $this->status, |
| 47 | 'resource' => $this->resource, |
| 48 | 'message' => $this->message, |
| 49 | 'tip' => $this->tip, |
| 50 | ]; |
| 51 | } |
| 52 | } |