item_validator_service_interface
Interface for Item Validator services.
Contract for validators responsible for checking universal rules for Item DTOs, such as metadata structure and base field formats. Extension-specific validators should extend this contract when introducing custom validation requirements.
Responsibilities:
- Validate DTO integrity for create/update operations
- Validate TYPE format (implementation must not enforce required TYPE on create)
- Validate status format (without enforcing a fixed list)
- Validate metadata structure and safety
This interface MUST NOT define methods related to business logic, required fields for specific item types, or workflow rules.
Table of Contents
Methods
- validate_create() : void
- Validate DTO for "create" operation.
- validate_update() : void
- Validate DTO for "update" operation.
Methods
validate_create()
Validate DTO for "create" operation.
public
validate_create(item_dto_interface $dto) : void
Parameters
- $dto : item_dto_interface
Tags
validate_update()
Validate DTO for "update" operation.
public
validate_update(item_dto_interface $dto) : void
Parameters
- $dto : item_dto_interface