@@ -54,7 +54,7 @@ |
||
| 54 | 54 | * Initializes the listener with the loader and the render instances. |
| 55 | 55 | * |
| 56 | 56 | * @param \TechDivision\Import\Loaders\LoaderInterface $loader The loader instance |
| 57 | - * @param \TechDivision\Import\Listeners\Renderer\Validations\ValidationRendererInterface[] $renderer The array with the validation renderer instances |
|
| 57 | + * @param \ArrayAccess $renderer The array with the validation renderer instances |
|
| 58 | 58 | */ |
| 59 | 59 | public function __construct(LoaderInterface $loader, \ArrayAccess $renderer) |
| 60 | 60 | { |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | /** |
| 122 | 122 | * Set's the validations. |
| 123 | 123 | * |
| 124 | - * @param array $validations The available validations |
|
| 124 | + * @param \ArrayAccess $validations The available validations |
|
| 125 | 125 | * |
| 126 | 126 | * @return void |
| 127 | 127 | */ |
@@ -326,7 +326,7 @@ |
||
| 326 | 326 | * |
| 327 | 327 | * @param string $v The key that should be used for filtering |
| 328 | 328 | * |
| 329 | - * @return int Returns 1 if the pattern matches given subject, 0 if it does not |
|
| 329 | + * @return boolean Returns 1 if the pattern matches given subject, 0 if it does not |
|
| 330 | 330 | * @throws \RuntimeException Is thrown, if the pattern can not be evaluated against the passed subject |
| 331 | 331 | * @link http://www.php.net/manual/en/function.strcmp.php |
| 332 | 332 | */ |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | * Initialize the factory with the DI container instance. |
| 56 | 56 | * |
| 57 | 57 | * @param \Symfony\Component\DependencyInjection\ContainerInterface $container The DI container instance |
| 58 | - * @param \TechDivision\Import\Loaders\LoaderFactoryInterface $handlerFactory The .OK file handler factory instance |
|
| 58 | + * @param HandlerFactoryInterface $handlerFactory The .OK file handler factory instance |
|
| 59 | 59 | */ |
| 60 | 60 | public function __construct( |
| 61 | 61 | ContainerInterface $container, |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * |
| 83 | 83 | * @param string $filename Path to the file |
| 84 | 84 | * |
| 85 | - * @return TRUE if the filename exists and is a directory, else FALSE |
|
| 85 | + * @return boolean if the filename exists and is a directory, else FALSE |
|
| 86 | 86 | */ |
| 87 | 87 | public function isDir($filename) |
| 88 | 88 | { |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * @param string $filename The name of the file to write the data to |
| 121 | 121 | * @param string $data The data to write to the file |
| 122 | 122 | * |
| 123 | - * @return number The number of bytes written to the file |
|
| 123 | + * @return boolean The number of bytes written to the file |
|
| 124 | 124 | */ |
| 125 | 125 | public function write($filename, $data) |
| 126 | 126 | { |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * |
| 224 | 224 | * @param string $filename The name of the file to return its content for |
| 225 | 225 | * |
| 226 | - * @return array The content of the file as array |
|
| 226 | + * @return string|false The content of the file as array |
|
| 227 | 227 | * @throws \Exception Is thrown, if the file is not accessible |
| 228 | 228 | */ |
| 229 | 229 | public function read($filename) |
@@ -199,7 +199,7 @@ |
||
| 199 | 199 | /** |
| 200 | 200 | * Returns the elements the filenames consists of. |
| 201 | 201 | * |
| 202 | - * @return array The array with the filename elements |
|
| 202 | + * @return string The array with the filename elements |
|
| 203 | 203 | * @todo Refactorig required, because of duplicate method |
| 204 | 204 | * @see \TechDivision\Import\Loaders\Filters\OkFileFilter::getOkFileSuffix() |
| 205 | 205 | */ |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | * |
| 55 | 55 | * @param \TechDivision\Import\Observers\AttributeCodeAndValueAwareObserverInterface|null $observer The observer |
| 56 | 56 | * |
| 57 | - * @return mixed The modified value |
|
| 57 | + * @return null|boolean The modified value |
|
| 58 | 58 | */ |
| 59 | 59 | public function handle(AttributeCodeAndValueAwareObserverInterface $observer = null) |
| 60 | 60 | { |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | /** |
| 187 | 187 | * Return's an array with the available URL rewrites. |
| 188 | 188 | * |
| 189 | - * @return array The available URL rewrites |
|
| 189 | + * @return \Generator The available URL rewrites |
|
| 190 | 190 | */ |
| 191 | 191 | public function findAll() |
| 192 | 192 | { |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * @param string $entityType The entity type to load the URL rewrites for |
| 242 | 242 | * @param integer $entityId The entity ID to load the URL rewrites for |
| 243 | 243 | * |
| 244 | - * @return array The URL rewrites |
|
| 244 | + * @return \Generator The URL rewrites |
|
| 245 | 245 | */ |
| 246 | 246 | public function findAllByEntityTypeAndEntityId($entityType, $entityId) |
| 247 | 247 | { |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | * @param integer $entityId The entity ID to load the URL rewrites for |
| 266 | 266 | * @param integer $storeId The store ID to load the URL rewrites for |
| 267 | 267 | * |
| 268 | - * @return array The URL rewrites |
|
| 268 | + * @return \Generator The URL rewrites |
|
| 269 | 269 | */ |
| 270 | 270 | public function findAllByEntityTypeAndEntityIdAndStoreId($entityType, $entityId, $storeId) |
| 271 | 271 | { |