phpDocumentor

ManufacturerWriteService
in package
implements ManufacturerWriteServiceInterface

Class ManufacturerWriteService

Tags
category

System

Interfaces, Classes and Traits

ManufacturerWriteServiceInterface
Interface ManufacturerWriteServiceInterface

Table of Contents

$repository  : ManufacturerRepositoryInterface
$storage  : ImageFileStorage
__construct()  : mixed
createManufacturer()  : Manufacturer
Creates manufacturer entity.
delete()  : $this|ManufacturerWriteServiceInterface
Deletes manufacturer entity from database.
deleteImage()  : $this
Delete an existing image from filesystem.
save()  : $this|ManufacturerWriteServiceInterface
Saves manufacturer entity in database.
saveImage()  : $this
Saves an existing image file with giving name.
unifyFilename()  : FilenameStringType
If the file is existing ,the filename get an unique id as prefix

Properties

Methods

deleteImage()

Delete an existing image from filesystem.

public deleteImage(IdType $id) : $this
Parameters
$id : IdType

manufacturer id to get the image name.

Return values
$this

Search results