| 1 | <?php |
||
| 7 | class GenericReport implements ReportInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The human readable message describing this report. |
||
| 11 | * @var StringAtom |
||
| 12 | */ |
||
| 13 | protected $message; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The optional details associated with this report. |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $details; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new generic report given the message and optional |
||
| 23 | * details associated with it. |
||
| 24 | * |
||
| 25 | * @param StringAtom $message |
||
| 26 | * @param array $details |
||
| 27 | */ |
||
| 28 | public function __construct(StringAtom $message, array $details = []) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @see ReportInterface |
||
| 36 | */ |
||
| 37 | public function getMessage() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @see ReportInterface |
||
| 44 | */ |
||
| 45 | public function hasDetails() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @see ReportInterface |
||
| 52 | */ |
||
| 53 | public function getDetails() |
||
| 57 | } |
||
| 58 |