item_service extends facade
Facade for local_middag\framework\application\service\item\item_service.
Tags
Table of Contents
Methods
- create() : item_interface
- delete() : void
- find() : item_interface|null
- find_by_type() : array<string|int, mixed>
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- get_metadata() : array<string|int, mixed>
- get_repository() : item_repository_interface
- update() : item_interface
Methods
create()
public
static create(item_dto_interface $dto) : item_interface
Parameters
- $dto : item_dto_interface
Return values
item_interfacedelete()
public
static delete(int $id) : void
Parameters
- $id : int
find()
public
static find(int $id) : item_interface|null
Parameters
- $id : int
Return values
item_interface|nullfind_by_type()
public
static find_by_type(string $type) : array<string|int, mixed>
Parameters
- $type : string
Return values
array<string|int, mixed>get_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringget_metadata()
public
static get_metadata(int $id) : array<string|int, mixed>
Parameters
- $id : int
Return values
array<string|int, mixed>get_repository()
public
static get_repository() : item_repository_interface
Return values
item_repository_interfaceupdate()
public
static update(item_dto_interface $dto) : item_interface
Parameters
- $dto : item_dto_interface