Copied!

LocalProductTypeServiceInterface

LocalProductTypeServiceInterface.php : 16

Methods

publiccreateProductType()

LocalProductTypeServiceInterface.php : 22
public createProductType(ProductTypeCreateStruct $createStruct) : ProductTypeInterface

Parameters

Name Type Default value Description
$createStruct ProductTypeCreateStruct - -

Return values

ProductTypeInterface

Tags
Throws
UnauthorizedException
Throws
InvalidArgumentException

publicdeleteProductType()

LocalProductTypeServiceInterface.php : 38
public deleteProductType(ProductTypeInterface $productType) : void

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -
Tags
Throws
UnauthorizedException

publicdeleteProductTypeTranslation()

LocalProductTypeServiceInterface.php : 46
public deleteProductTypeTranslation(ProductTypeInterface $productType, string $languageCode) : void

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -
$languageCode string - -
Tags
Throws
UnauthorizedException
Throws
BadStateException

publicfindProductTypes()

ProductTypeServiceInterface.php : 31
public findProductTypes([ProductTypeQuery|null $query = null ][, LanguageSettings|null $languageSettings = null ]) : ProductTypeListInterface

Parameters

Name Type Default value Description
$query ProductTypeQuery|null null -
$languageSettings LanguageSettings|null null -

Return values

ProductTypeListInterface

Tags
Throws
UnauthorizedException
Throws
ConfigurationException

publicgetProductType()

ProductTypeServiceInterface.php : 22
public getProductType(string $identifier[, LanguageSettings|null $languageSettings = null ]) : ProductTypeInterface

Parameters

Name Type Default value Description
$identifier string - -
$languageSettings LanguageSettings|null null -

Return values

ProductTypeInterface

Tags
Throws
NotFoundException
Throws
UnauthorizedException

publicisProductTypeUsed()

LocalProductTypeServiceInterface.php : 40
public isProductTypeUsed(ProductTypeInterface $productType) : bool

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -

Return values

bool

publicnewProductTypeCreateStruct()

LocalProductTypeServiceInterface.php : 24
public newProductTypeCreateStruct(string $identifier, string $mainLanguageCode) : ProductTypeCreateStruct

Parameters

Name Type Default value Description
$identifier string - -
$mainLanguageCode string - -

Return values

ProductTypeCreateStruct

publicnewProductTypeUpdateStruct()

LocalProductTypeServiceInterface.php : 26
public newProductTypeUpdateStruct(ProductTypeInterface $productType) : ProductTypeUpdateStruct

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -

Return values

ProductTypeUpdateStruct

publicupdateProductType()

LocalProductTypeServiceInterface.php : 33
public updateProductType(ProductTypeUpdateStruct $updateStruct) : ProductTypeInterface

Parameters

Name Type Default value Description
$updateStruct ProductTypeUpdateStruct - -

Return values

ProductTypeInterface

Tags
Throws
NotFoundException
Throws
UnauthorizedException
Throws
InvalidArgumentException