1 | <?php |
||
16 | abstract class AbstractJsonApiView implements HttpAttributesAwareInterface, IncludedObjectsAwareInterface |
||
17 | { |
||
18 | use HttpAttributesContainer; |
||
19 | use IncludedObjectsContainer; |
||
20 | |||
21 | /** |
||
22 | * Callback to call after a resource-object has created. |
||
23 | * |
||
24 | * @var callable |
||
25 | */ |
||
26 | protected $postResourceCallback; |
||
27 | |||
28 | /** |
||
29 | * Set a callback to call after a resource-object has created. |
||
30 | * |
||
31 | * @param callable $callback |
||
32 | */ |
||
33 | public function setPostResourceCallback(callable $callback) |
||
37 | |||
38 | /** |
||
39 | * Has a callback to call after a resource-object has created ? |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function hasPostResourceCallback(): bool |
||
47 | |||
48 | /** |
||
49 | * Get a callback to call after a resource-object has created. |
||
50 | * |
||
51 | * @return callable |
||
52 | */ |
||
53 | public function getPostResourceCallback(): callable |
||
57 | } |