@@ -89,7 +89,7 @@ |
||
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * exclude methods from the automatism |
| 92 | - * @param $methods |
|
| 92 | + * @param string[] $methods |
|
| 93 | 93 | */ |
| 94 | 94 | public function setExcludeMethods($methods) |
| 95 | 95 | { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * Create the Json Entity Hydrator |
| 22 | 22 | * |
| 23 | 23 | * @param ServiceLocatorInterface $serviceLocator |
| 24 | - * @return JsonEntityHydrator |
|
| 24 | + * @return EntityHydrator |
|
| 25 | 25 | */ |
| 26 | 26 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 27 | 27 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @param $data |
| 27 | - * @return mixed |
|
| 27 | + * @return Snapshot |
|
| 28 | 28 | * @ODM\PreUpdate |
| 29 | 29 | */ |
| 30 | 30 | public function __invoke($data) |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | * |
| 74 | 74 | * Proxies to {@link render()}. |
| 75 | 75 | * |
| 76 | - * @param null|ElementInterface $element |
|
| 76 | + * @param null|ElementInterface $elements |
|
| 77 | 77 | * @param null|string $labelPosition |
| 78 | 78 | * @param bool $renderErrors |
| 79 | 79 | * @return string|FormRow |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @param LoggerInterface $log |
| 45 | - * @param null $redirect |
|
| 45 | + * @param \Closure $redirect |
|
| 46 | 46 | */ |
| 47 | 47 | public function __construct(LoggerInterface $log, $redirect = null) |
| 48 | 48 | { |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | * |
| 135 | 135 | * @param string $name |
| 136 | 136 | * @param mixed $value |
| 137 | - * @return ViewModel |
|
| 137 | + * @return HTMLTemplateMessage |
|
| 138 | 138 | */ |
| 139 | 139 | public function setVariable($name, $value) |
| 140 | 140 | { |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | * |
| 196 | 196 | * Resets the internal variable container to an empty container. |
| 197 | 197 | * |
| 198 | - * @return ViewModel |
|
| 198 | + * @return HTMLTemplateMessage |
|
| 199 | 199 | */ |
| 200 | 200 | public function clearVariables() |
| 201 | 201 | { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | /** |
| 207 | 207 | * |
| 208 | 208 | * |
| 209 | - * @param $template |
|
| 209 | + * @param string $template |
|
| 210 | 210 | * |
| 211 | 211 | * @return self |
| 212 | 212 | */ |
@@ -216,6 +216,9 @@ discard block |
||
| 216 | 216 | return $this; |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | + /** |
|
| 220 | + * @return string |
|
| 221 | + */ |
|
| 219 | 222 | public function getTemplate() |
| 220 | 223 | { |
| 221 | 224 | return $this->template; |
@@ -34,6 +34,9 @@ |
||
| 34 | 34 | { |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $directory |
|
| 39 | + */ |
|
| 37 | 40 | public static function load($directory) |
| 38 | 41 | { |
| 39 | 42 | $directory = rtrim($directory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @param ServiceLocatorInterface $serviceLocator |
| 27 | - * @return mixed|Paginator |
|
| 27 | + * @return Paginator |
|
| 28 | 28 | */ |
| 29 | 29 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 30 | 30 | { |
@@ -108,6 +108,9 @@ |
||
| 108 | 108 | return $entities; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | + /** |
|
| 112 | + * @return string |
|
| 113 | + */ |
|
| 111 | 114 | protected function getRepositoryName() |
| 112 | 115 | { |
| 113 | 116 | if (0 === strpos($this->repositoryName, '\\')) { |