Copied!

LocalAssetServiceInterface

LocalAssetServiceInterface.php : 17

Methods

publiccreateAsset()

LocalAssetServiceInterface.php : 23
public createAsset(ProductInterface $product, AssetCreateStruct $createStruct) : AssetInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$createStruct AssetCreateStruct - -

Return values

AssetInterface

Tags
Throws
InvalidArgumentException
Throws
UnauthorizedException

publicdeleteAsset()

LocalAssetServiceInterface.php : 28
public deleteAsset(ProductInterface $product, AssetInterface $asset) : void

Parameters

Name Type Default value Description
$product ProductInterface - -
$asset AssetInterface - -
Tags
Throws
UnauthorizedException

publicfindAssets()

AssetServiceInterface.php : 20
public findAssets(ProductInterface $product) : AssetCollectionInterface

Parameters

Name Type Default value Description
$product ProductInterface - -

Return values

AssetCollectionInterface

Tags
Throws
UnauthorizedException

publicgetAsset()

AssetServiceInterface.php : 26
public getAsset(ProductInterface $product, string $identifier) : AssetInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$identifier string - -

Return values

AssetInterface

Tags
Throws
NotFoundException
Throws
UnauthorizedException

publicnewAssetCreateStruct()

LocalAssetServiceInterface.php : 30
public newAssetCreateStruct() : AssetCreateStruct

Return values

AssetCreateStruct

publicnewAssetUpdateStruct()

LocalAssetServiceInterface.php : 32
public newAssetUpdateStruct() : AssetUpdateStruct

Return values

AssetUpdateStruct

publicupdateAsset()

LocalAssetServiceInterface.php : 38
public updateAsset(ProductInterface $product, AssetInterface $asset, AssetUpdateStruct $updateStruct) : AssetInterface

Parameters

Name Type Default value Description
$product ProductInterface - -
$asset AssetInterface - -
$updateStruct AssetUpdateStruct - -

Return values

AssetInterface

Tags
Throws
InvalidArgumentException
Throws
UnauthorizedException