| 1 | <?php |
||
| 7 | class CheckResult |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Status message. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | public $status; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Result comment. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | public $comment; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Possible check statuses. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $possibleStatuses = [ |
||
| 29 | 'Ok', |
||
| 30 | 'Note', |
||
| 31 | 'Fail', |
||
| 32 | 'Skip', |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Result constructor. |
||
| 37 | * |
||
| 38 | * @param string $status |
||
| 39 | * @param string $comment |
||
| 40 | */ |
||
| 41 | public function __construct($status, $comment) |
||
| 50 | } |
||
| 51 |