item_service_interface
interface item_service_interface
Public API Contract for item_service.
Extensions MUST depend on this interface instead of the concrete application service inside the Core.
Methods
void
delete(int $id)
Delete an item by its ID.
item_interface|null
find(int $id)
Find an item by ID.
array
get_metadata(int $id)
Retrieve metadata for an item.
array
find_by_type(string $type)
Retrieve all items of a given TYPE.
get_repository()
Get the underlying repository instance.
Details
at line 41
item_interface
create(item_dto_interface $dto)
Create a new item.
at line 50
item_interface
update(item_dto_interface $dto)
Update an existing item.
at line 57
void
delete(int $id)
Delete an item by its ID.
at line 66
item_interface|null
find(int $id)
Find an item by ID.
at line 75
array
get_metadata(int $id)
Retrieve metadata for an item.
at line 84
array
find_by_type(string $type)
Retrieve all items of a given TYPE.
at line 92
item_repository_interface
get_repository()
Get the underlying repository instance.
Use with caution; prefer service methods.