Forms Interfaces
(all in the Centum\Interfaces\Forms
namespace)
FieldInterface
getName(): non-empty-string
getFilters(): list<Centum\Interfaces\Filter\FilterInterface>
getValidators(): list<Centum\Interfaces\Validator\ValidatorInterface>
addFilter(
Centum\Interfaces\Filter\FilterInterface $filter
): void
addValidator(
Centum\Interfaces\Validator\ValidatorInterface $validator
): void
getFilteredValue(
mixed $value
): mixed
isValid(
mixed $value
): bool
getMessages(
mixed $value
): list<non-empty-string>
FormInterface
add(
Centum\Interfaces\Forms\FieldInterface $field
): void
getFilteredValues(
array<string, mixed> $data
): array<string, mixed>
validate(
array<string, mixed> $data
): Centum\Interfaces\Forms\StatusInterface
StatusInterface
isValid(): bool
getMessages(): array<non-empty-string, array<non-empty-string>>