@@ 143-155 (lines=13) @@ | ||
140 | * |
|
141 | * @return $this |
|
142 | */ |
|
143 | public function addDataError( |
|
144 | $title, |
|
145 | $detail = null, |
|
146 | $status = null, |
|
147 | $idx = null, |
|
148 | LinkInterface $aboutLink = null, |
|
149 | $code = null, |
|
150 | $meta = null |
|
151 | ) { |
|
152 | $pointer = $this->getPathToData(); |
|
153 | ||
154 | return $this->addResourceError($title, $pointer, $detail, $status, $idx, $aboutLink, $code, $meta); |
|
155 | } |
|
156 | ||
157 | /** |
|
158 | * @param string $title |
|
@@ 168-180 (lines=13) @@ | ||
165 | * |
|
166 | * @return $this |
|
167 | */ |
|
168 | public function addDataTypeError( |
|
169 | $title, |
|
170 | $detail = null, |
|
171 | $status = null, |
|
172 | $idx = null, |
|
173 | LinkInterface $aboutLink = null, |
|
174 | $code = null, |
|
175 | $meta = null |
|
176 | ) { |
|
177 | $pointer = $this->getPathToType(); |
|
178 | ||
179 | return $this->addResourceError($title, $pointer, $detail, $status, $idx, $aboutLink, $code, $meta); |
|
180 | } |
|
181 | ||
182 | /** |
|
183 | * @param string $title |
|
@@ 193-205 (lines=13) @@ | ||
190 | * |
|
191 | * @return $this |
|
192 | */ |
|
193 | public function addDataIdError( |
|
194 | $title, |
|
195 | $detail = null, |
|
196 | $status = null, |
|
197 | $idx = null, |
|
198 | LinkInterface $aboutLink = null, |
|
199 | $code = null, |
|
200 | $meta = null |
|
201 | ) { |
|
202 | $pointer = $this->getPathToId(); |
|
203 | ||
204 | return $this->addResourceError($title, $pointer, $detail, $status, $idx, $aboutLink, $code, $meta); |
|
205 | } |
|
206 | ||
207 | /** |
|
208 | * @param string $name |
|
@@ 219-232 (lines=14) @@ | ||
216 | * |
|
217 | * @return $this |
|
218 | */ |
|
219 | public function addDataAttributeError( |
|
220 | $name, |
|
221 | $title, |
|
222 | $detail = null, |
|
223 | $status = null, |
|
224 | $idx = null, |
|
225 | LinkInterface $aboutLink = null, |
|
226 | $code = null, |
|
227 | $meta = null |
|
228 | ) { |
|
229 | $pointer = $this->getPathToAttribute($name); |
|
230 | ||
231 | return $this->addResourceError($title, $pointer, $detail, $status, $idx, $aboutLink, $code, $meta); |
|
232 | } |
|
233 | ||
234 | /** |
|
235 | * @param string $title |
|
@@ 245-257 (lines=13) @@ | ||
242 | * |
|
243 | * @return $this |
|
244 | */ |
|
245 | public function addRelationshipsError( |
|
246 | $title, |
|
247 | $detail = null, |
|
248 | $status = null, |
|
249 | $idx = null, |
|
250 | LinkInterface $aboutLink = null, |
|
251 | $code = null, |
|
252 | $meta = null |
|
253 | ) { |
|
254 | $pointer = $this->getPathToRelationships(); |
|
255 | ||
256 | return $this->addResourceError($title, $pointer, $detail, $status, $idx, $aboutLink, $code, $meta); |
|
257 | } |
|
258 | ||
259 | /** |
|
260 | * @param string $name |
|
@@ 271-284 (lines=14) @@ | ||
268 | * |
|
269 | * @return $this |
|
270 | */ |
|
271 | public function addRelationshipError( |
|
272 | $name, |
|
273 | $title, |
|
274 | $detail = null, |
|
275 | $status = null, |
|
276 | $idx = null, |
|
277 | LinkInterface $aboutLink = null, |
|
278 | $code = null, |
|
279 | $meta = null |
|
280 | ) { |
|
281 | $pointer = $this->getPathToRelationship($name); |
|
282 | ||
283 | return $this->addResourceError($title, $pointer, $detail, $status, $idx, $aboutLink, $code, $meta); |
|
284 | } |
|
285 | ||
286 | /** |
|
287 | * @param string $name |
|
@@ 298-311 (lines=14) @@ | ||
295 | * |
|
296 | * @return $this |
|
297 | */ |
|
298 | public function addRelationshipTypeError( |
|
299 | $name, |
|
300 | $title, |
|
301 | $detail = null, |
|
302 | $status = null, |
|
303 | $idx = null, |
|
304 | LinkInterface $aboutLink = null, |
|
305 | $code = null, |
|
306 | $meta = null |
|
307 | ) { |
|
308 | $pointer = $this->getPathToRelationshipType($name); |
|
309 | ||
310 | return $this->addResourceError($title, $pointer, $detail, $status, $idx, $aboutLink, $code, $meta); |
|
311 | } |
|
312 | ||
313 | /** |
|
314 | * @param string $name |
|
@@ 325-338 (lines=14) @@ | ||
322 | * |
|
323 | * @return $this |
|
324 | */ |
|
325 | public function addRelationshipIdError( |
|
326 | $name, |
|
327 | $title, |
|
328 | $detail = null, |
|
329 | $status = null, |
|
330 | $idx = null, |
|
331 | LinkInterface $aboutLink = null, |
|
332 | $code = null, |
|
333 | $meta = null |
|
334 | ) { |
|
335 | $pointer = $this->getPathToRelationshipId($name); |
|
336 | ||
337 | return $this->addResourceError($title, $pointer, $detail, $status, $idx, $aboutLink, $code, $meta); |
|
338 | } |
|
339 | ||
340 | /** |
|
341 | * @param string $name |