| 1 | <?php  | 
            ||
| 11 | trait JsonApiErrors  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 | * Return an error response containing a JSON API errors object.  | 
            ||
| 15 | *  | 
            ||
| 16 | * @param int $status  | 
            ||
| 17 | * @param string $title  | 
            ||
| 18 | * @param string|null $detail  | 
            ||
| 19 | *  | 
            ||
| 20 | * @return JsonApiResponse  | 
            ||
| 21 | */  | 
            ||
| 22 | public function error($status, $title, $detail = null)  | 
            ||
| 32 | }  | 
            ||
| 33 |