Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit
31 lines
520 B
PHP
31 lines
520 B
PHP
<?php
|
|
|
|
namespace Enzyme\Axiom\Reports;
|
|
|
|
class SimpleReport implements ReportInterface
|
|
{
|
|
protected $message;
|
|
protected $details;
|
|
|
|
public function __construct($message, $details = [])
|
|
{
|
|
$this->message = $message;
|
|
$this->details = $details;
|
|
}
|
|
|
|
public function getMessage()
|
|
{
|
|
return $this->message;
|
|
}
|
|
|
|
public function hasDetails()
|
|
{
|
|
return count($this->details) > 0;
|
|
}
|
|
|
|
public function getDetails()
|
|
{
|
|
return $this->details;
|
|
}
|
|
}
|