| 1 | <?php |
||
| 12 | class JsonApiObjectView extends AbstractJsonApiView |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Object supposed to be handled |
||
| 16 | * |
||
| 17 | * @var mixed |
||
| 18 | */ |
||
| 19 | protected $object; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * JsonApiObjectView constructor. |
||
| 23 | * |
||
| 24 | * @param mixed $object |
||
| 25 | * @param int $status |
||
| 26 | * @param array $headers |
||
| 27 | */ |
||
| 28 | 3 | public function __construct($object, int $status = 200, array $headers = []) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Get object passed to handling |
||
| 37 | * |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | 1 | public function getObject() |
|
| 44 | } |