@@ -585,7 +585,7 @@ |
||
585 | 585 | |
586 | 586 | /** |
587 | 587 | * Generate a VALUES clause for limiting the targeted graphs. |
588 | - * @param array $vocabs array of Vocabulary objects to target |
|
588 | + * @param Vocabulary[] $vocabs array of Vocabulary objects to target |
|
589 | 589 | * @return string VALUES clause, or "" if not necessary to limit |
590 | 590 | */ |
591 | 591 | protected function formatValuesGraph($vocabs) { |
@@ -10,6 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | class VocabularyCategory extends DataObject |
12 | 12 | { |
13 | + /** |
|
14 | + * @param Model $model |
|
15 | + */ |
|
13 | 16 | public function __construct($model, $resource) |
14 | 17 | { |
15 | 18 | if (!($model instanceof Model)) { |
@@ -23,6 +23,9 @@ |
||
23 | 23 | } |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $name |
|
28 | + */ |
|
26 | 29 | private function getConstant($name, $default) |
27 | 30 | { |
28 | 31 | if (defined($name) && constant($name)) { |
@@ -114,6 +114,9 @@ discard block |
||
114 | 114 | return $this->returnJson($ret); |
115 | 115 | } |
116 | 116 | |
117 | + /** |
|
118 | + * @param Request $request |
|
119 | + */ |
|
117 | 120 | private function constructSearchParameters($request) |
118 | 121 | { |
119 | 122 | $parameters = new ConceptSearchParameters($request, $this->model->getConfig(), true); |
@@ -129,6 +132,9 @@ discard block |
||
129 | 132 | return $parameters; |
130 | 133 | } |
131 | 134 | |
135 | + /** |
|
136 | + * @param Request $request |
|
137 | + */ |
|
132 | 138 | private function transformSearchResults($request, $results) |
133 | 139 | { |
134 | 140 | // before serializing to JSON, get rid of the Vocabulary object that came with each resource |