@@ -213,6 +213,9 @@ discard block |
||
213 | 213 | return \array_key_exists($param, $this->getResponseParameters()); |
214 | 214 | } |
215 | 215 | |
216 | + /** |
|
217 | + * @param string $value |
|
218 | + */ |
|
216 | 219 | public function setResponseHeader(string $responseHeader, $value): void |
217 | 220 | { |
218 | 221 | $this->responseHeaders[$responseHeader] = $value; |
@@ -287,6 +290,9 @@ discard block |
||
287 | 290 | return $this->data[$key]; |
288 | 291 | } |
289 | 292 | |
293 | + /** |
|
294 | + * @param boolean $data |
|
295 | + */ |
|
290 | 296 | public function setData(string $key, $data): void |
291 | 297 | { |
292 | 298 | $this->data[$key] = $data; |
@@ -24,6 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param string[] $titles |
26 | 26 | * @param mixed[] $properties |
27 | + * @param string $href |
|
27 | 28 | */ |
28 | 29 | public function __construct(string $rel, ?string $type, ?string $href, array $titles, array $properties) |
29 | 30 | { |
@@ -24,6 +24,7 @@ |
||
24 | 24 | * @param string[] $aliases |
25 | 25 | * @param mixed[] $properties |
26 | 26 | * @param Link[] $links |
27 | + * @param string $subject |
|
27 | 28 | */ |
28 | 29 | public function __construct(?string $subject, array $aliases, array $properties, array $links) |
29 | 30 | { |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface ResourceRepository |
19 | 19 | { |
20 | + /** |
|
21 | + * @return null|ResourceDescriptor |
|
22 | + */ |
|
20 | 23 | public function find(string $resource, Identifier $identifier): ?ResourceDescriptor; |
21 | 24 | } |