Interfaces

(all in the Centum\Interfaces\Forms namespace)

Centum\Interfaces\Forms\FieldInterface

getName(): non-empty-string
getFilters(): array<Centum\Interfaces\Filter\FilterInterface>
getValidators(): array<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
): array<non-empty-string>

Centum\Interfaces\Forms\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

Centum\Interfaces\Forms\StatusInterface

isValid(): bool
getMessages(): array<non-empty-string, array<non-empty-string>>