1 | <?php |
||
12 | trait ActivitySerializerTrait { |
||
13 | |||
14 | /** |
||
15 | * @param mixed $model |
||
16 | * @param mixed $related |
||
17 | */ |
||
18 | public function actor($model, $related) { |
||
26 | |||
27 | /** |
||
28 | * @param mixed $model |
||
29 | * @param array $fields |
||
30 | */ |
||
31 | public function getAttributes($model, array $fields = null) { |
||
40 | |||
41 | /** |
||
42 | */ |
||
43 | public function getFields() { |
||
46 | |||
47 | /** |
||
48 | * @param mixed $model |
||
49 | */ |
||
50 | public function getId($model) { |
||
53 | |||
54 | /** |
||
55 | */ |
||
56 | public function getRelationships() { |
||
63 | |||
64 | /** |
||
65 | */ |
||
66 | public function getSortFields() { |
||
69 | |||
70 | /** |
||
71 | * @param mixed $model |
||
72 | */ |
||
73 | public function getType($model) { |
||
76 | |||
77 | /** |
||
78 | * @param mixed $model |
||
79 | * @param mixed $data |
||
80 | */ |
||
81 | public function hydrate($model, $data) { |
||
92 | |||
93 | /** |
||
94 | * @param mixed $model |
||
95 | * @param mixed $related |
||
96 | */ |
||
97 | public function object($model, $related) { |
||
105 | |||
106 | /** |
||
107 | * @param mixed $model |
||
108 | * @param mixed $data |
||
109 | */ |
||
110 | public function setActor($model, $data) { |
||
113 | |||
114 | /** |
||
115 | * @param mixed $model |
||
116 | * @param mixed $data |
||
117 | */ |
||
118 | public function setObject($model, $data) { |
||
121 | |||
122 | /** |
||
123 | * @param mixed $model |
||
124 | * @param mixed $data |
||
125 | */ |
||
126 | public function setTarget($model, $data) { |
||
129 | |||
130 | /** |
||
131 | * @param mixed $model |
||
132 | * @param mixed $related |
||
133 | */ |
||
134 | public function target($model, $related) { |
||
142 | } |
||
143 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.