bool, 'errors' => array] */ public function validate(array $mapped): array; /** * Get the entity class name this handler manages. * * @return string */ public function getEntityClass(): string; /** * Resolve existing entity by key/reference. * * @param array $mapped Mapped data for this entity * @param array $context Additional context * @return mixed|null Existing entity instance or null */ public function resolve(array $mapped, array $context = []): mixed; }