@@ -270,8 +270,8 @@ |
||
| 270 | 270 | * The Location Manager currently supports setting references to location id. |
| 271 | 271 | * |
| 272 | 272 | * @throws \InvalidArgumentException When trying to set a reference to an unsupported attribute. |
| 273 | - * @param \eZ\Publish\API\Repository\Values\Content\Location|LocationCollection $location |
|
| 274 | - * @return boolean |
|
| 273 | + * @param LocationCollection|null $location |
|
| 274 | + * @return false|null |
|
| 275 | 275 | */ |
| 276 | 276 | protected function setReferences($location, $step) |
| 277 | 277 | { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @throws \InvalidArgumentException when trying to set a reference to an unsupported attribute. |
| 117 | 117 | * @param $object a sinle element to extract reference values from |
| 118 | - * @param array $referencesDefinitionsthe definitions of the references to extract |
|
| 118 | + * @param array $referencesDefinitions definitions of the references to extract |
|
| 119 | 119 | * @return array key: the reference name (taken from $referencesDefinitions[n]['identifier'], value: the ref. value |
| 120 | 120 | */ |
| 121 | 121 | abstract protected function getReferencesValues($object, $referencesDefinitions); |
@@ -323,6 +323,9 @@ discard block |
||
| 323 | 323 | return preg_replace('/(?<!^)[A-Z]/', ' $0', $className); |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | + /** |
|
| 327 | + * @param AbstractCollection $collection |
|
| 328 | + */ |
|
| 326 | 329 | protected function getCollectionName($collection) |
| 327 | 330 | { |
| 328 | 331 | $className = get_class($collection); |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | * |
| 124 | 124 | * @param \eZ\Publish\API\Repository\Values\Content\Section|SectionCollection $section |
| 125 | 125 | * @throws \InvalidArgumentException When trying to set a reference to an unsupported attribute |
| 126 | - * @return boolean |
|
| 126 | + * @return false|null |
|
| 127 | 127 | */ |
| 128 | 128 | protected function setReferences($section, $step) |
| 129 | 129 | { |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | |
| 168 | 168 | /** |
| 169 | 169 | * @param $object |
| 170 | - * @return bool |
|
| 170 | + * @return false|null |
|
| 171 | 171 | * |
| 172 | 172 | * @todo add support for keyword (with language), |
| 173 | 173 | */ |