ManufacturerRepositoryInterface

Extends

Interface ManufacturerRepositoryInterface

category

System

package

Manufacturer

subpackage

Repositories

Methods

creates manufacturer entity.

createManufacturer() : \Manufacturer

Response

\Manufacturer

New manufacturer entity.

Deletes manufacturer entity from database.

delete(\ManufacturerInterface $manufacturer) : \ManufacturerRepositoryInterface

Arguments

$manufacturer

\ManufacturerInterface

Manufacturer entity to be deleted.

Response

\ManufacturerRepositoryInterface

Same instance for chained method calls.

Returns all manufacturer as collection.

getAll() : \ManufacturerCollection

Response

\ManufacturerCollection

Manufacturer collection.

Returns manufacturer entity by the given id.

getById(\IdType $manufacturerId) : \ManufacturerInterface

Arguments

$manufacturerId

\IdType

IdType of entity to be returned.

Response

\ManufacturerInterface

Saves manufacturer entity in database.

save(\ManufacturerInterface $manufacturer) : \ManufacturerRepositoryInterface

Arguments

$manufacturer

\ManufacturerInterface

Manufacturer entity to be saved.

Response

\ManufacturerRepositoryInterface

Same instance for chained method calls.