for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Arrilot\SystemCheck;
use InvalidArgumentException;
class CheckResult
{
/**
* Status message.
*
* @var string
*/
public $status;
* Result comment.
public $comment;
* Possible check statuses.
* @var array
protected $possibleStatuses = [
'Ok',
'Note',
'Fail',
'Skip',
];
* Result constructor.
* @param string $status
* @param string $comment
public function __construct($status, $comment)
if (! in_array($status, $this->possibleStatuses)) {
throw new InvalidArgumentException("Check result can not have status '{$status}'");
}
$this->status = $status;
$this->comment = $comment;