ProductImageInUseService
in package
implements
ProductImageInUseServiceInterface
Class ProductImageInUseService
Interfaces, Classes and Traits
- ProductImageInUseServiceInterface
- Interface ProductImageInUseServiceInterface
Table of Contents
- $imagesInUse : array<string|int, ProductImageBaseName>
- $repository : ProductImageRepositoryInterface
- __construct() : mixed
- ProductImageService constructor.
- imageIsInUse() : bool
- imagesInUse() : array<string|int, mixed>|array<string|int, ProductImageBaseName>
Properties
$imagesInUse
protected
array<string|int, ProductImageBaseName>
$imagesInUse
$repository
protected
ProductImageRepositoryInterface
$repository
Methods
__construct()
ProductImageService constructor.
public
__construct(ProductImageRepositoryInterface $repository) : mixed
Parameters
- $repository : ProductImageRepositoryInterface
Return values
mixed —imageIsInUse()
public
imageIsInUse(string $fileName) : bool
Parameters
- $fileName : string
Return values
bool —imagesInUse()
protected
imagesInUse() : array<string|int, mixed>|array<string|int, ProductImageBaseName>