AttributeService
in package
Table of Contents
Constants
- UNIVERSE_ATTRIBUTE_CODE = 'product_universes'
Properties
- $attributeApi : AttributeApi|object
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
Methods
- __construct() : mixed
- getAttributeOptions() : array<string|int, mixed>|mixed
- getRepo() : AttributeRepository
- save() : Attribute
- Save a Attribute
- saveAttributeNewOption() : array<string|int, mixed>|mixed
Constants
UNIVERSE_ATTRIBUTE_CODE
public
mixed
UNIVERSE_ATTRIBUTE_CODE
= 'product_universes'
Properties
$attributeApi
protected
AttributeApi|object
$attributeApi
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
Methods
__construct()
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
getAttributeOptions()
public
getAttributeOptions(mixed $attributeCode) : array<string|int, mixed>|mixed
Parameters
- $attributeCode : mixed
Return values
array<string|int, mixed>|mixedgetRepo()
public
getRepo() : AttributeRepository
Return values
AttributeRepositorysave()
Save a Attribute
public
save(Attribute $attribute) : Attribute
Parameters
- $attribute : Attribute
Return values
AttributesaveAttributeNewOption()
public
saveAttributeNewOption(mixed $attributeCode, mixed $options) : array<string|int, mixed>|mixed
Parameters
- $attributeCode : mixed
- $options : mixed