| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ArrayResponseErrorHandler implements ErrorHandlerInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The IoC Container. |
||
| 12 | * |
||
| 13 | * @var Container |
||
| 14 | */ |
||
| 15 | protected $app; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor to setup the interpreter. |
||
| 19 | * |
||
| 20 | * @param Container $app |
||
| 21 | */ |
||
| 22 | 5 | public function __construct(Container $app) |
|
| 25 | 5 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Function to take the response object and return |
||
| 29 | * an array of errors. |
||
| 30 | * |
||
| 31 | * @param Response $response - response object |
||
| 32 | * |
||
| 33 | * @return array - array of string error messages |
||
| 34 | */ |
||
| 35 | 4 | public function parseErrors(Response $response) |
|
| 40 |