@@ -129,6 +129,10 @@ |
||
129 | 129 | $resource->image->name = $image->getTitle(); |
130 | 130 | } |
131 | 131 | |
132 | + /** |
|
133 | + * @param string $image |
|
134 | + * @param string $target |
|
135 | + */ |
|
132 | 136 | private function newViewAction(array $nameTerms, $image, $target) { |
133 | 137 | $actionResource = new stdClass(); |
134 | 138 | $actionResource->{'@type'} = 'ViewAction'; |
@@ -58,6 +58,9 @@ |
||
58 | 58 | return $this->entityIdsToEntityIdValues($this->getEntityIdsForValue($value)); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $value |
|
63 | + */ |
|
61 | 64 | private function getEntityIdsForValue($value) { |
62 | 65 | $languageCode = $this->getOption(ValueParser::OPT_LANG); |
63 | 66 | $term = new Term($languageCode, $value); |
@@ -99,6 +99,9 @@ discard block |
||
99 | 99 | return $this->formatQueryResult($entityIds); |
100 | 100 | } |
101 | 101 | |
102 | + /** |
|
103 | + * @return \Ask\Language\Description\Description |
|
104 | + */ |
|
102 | 105 | private function buildQueryForNode(AbstractNode $node) { |
103 | 106 | if($node instanceof UnionNode) { |
104 | 107 | return $this->buildQueryForUnion($node); |
@@ -205,6 +208,9 @@ discard block |
||
205 | 208 | ); |
206 | 209 | } |
207 | 210 | |
211 | + /** |
|
212 | + * @return \Ask\Language\Description\Description |
|
213 | + */ |
|
208 | 214 | private function buildValueDescriptionsForObjects(ResourceListNode $objectList) { |
209 | 215 | $valueDescriptions = array(); |
210 | 216 |