We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class StepResult |
||
| 6 | { |
||
| 7 | public function __construct( |
||
| 8 | public readonly StepStatus $status, |
||
| 9 | public readonly string $summary, |
||
| 10 | public readonly array $details = [], |
||
| 11 | public readonly array $context = [] |
||
| 12 | ) { |
||
| 13 | } |
||
| 14 | |||
| 15 | public static function success(string $summary, array $details = [], array $context = []): self |
||
| 16 | { |
||
| 17 | return new self(StepStatus::Passed, $summary, $details, $context); |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function warning(string $summary, array $details = [], array $context = []): self |
||
| 21 | { |
||
| 22 | return new self(StepStatus::Warning, $summary, $details, $context); |
||
| 23 | } |
||
| 24 | |||
| 25 | public static function failure(string $summary, array $details = [], array $context = []): self |
||
| 28 | } |
||
| 29 | |||
| 30 | public static function skipped(string $summary, array $details = [], array $context = []): self |
||
| 33 | } |
||
| 34 | } |
||
| 35 |