1 | <?php |
||
37 | 1 | trait TSendsRequests |
|
38 | { |
||
39 | /** |
||
40 | * @var ContainerInterface |
||
41 | */ |
||
42 | protected $schemas; |
||
43 | |||
44 | /** |
||
45 | * @var Encoders\ISerializer |
||
46 | */ |
||
47 | protected $serializer; |
||
48 | |||
49 | /** |
||
50 | * @param mixed $record |
||
51 | * @param string[]|NULL $fields |
||
52 | * |
||
53 | * @return array |
||
54 | */ |
||
55 | protected function serializeRecord($record, array $fields = NULL) : array |
||
66 | |||
67 | /** |
||
68 | * @param bool $body whether HTTP request body is being sent |
||
69 | * |
||
70 | * @return string[] |
||
71 | */ |
||
72 | protected function jsonApiHeaders($body = FALSE) : array |
||
84 | |||
85 | /** |
||
86 | * @param EncodingParametersInterface $parameters |
||
87 | * |
||
88 | * @return array |
||
89 | */ |
||
90 | protected function parseQuery(EncodingParametersInterface $parameters) : array |
||
100 | |||
101 | /** |
||
102 | * @param EncodingParametersInterface $parameters |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | protected function parseSearchQuery(EncodingParametersInterface $parameters) : array |
||
117 | |||
118 | /** |
||
119 | * @param array $fieldsets |
||
120 | * |
||
121 | * @return string[] |
||
122 | */ |
||
123 | private function parseQueryFieldsets(array $fieldsets) : array |
||
129 | |||
130 | /** |
||
131 | * @param array|NULL $includePaths |
||
132 | * @param array|NULL $fieldSets |
||
133 | * |
||
134 | * @return EncodingParametersInterface |
||
135 | */ |
||
136 | private function createQueryParameters(array $includePaths = NULL, array $fieldSets = NULL) : EncodingParametersInterface |
||
140 | } |
||
141 |