<?php

namespace Plainwork\Ui\Component\Form;

use Plainwork\Http\Request;

interface InputInterface
{
    public function setName(string $name): self;
    public function getName(): string;
    public function grab(Request $request);
    public function addError($error): self;
    public function getErrors(): array;
    public function addHelp($help): self;
    public function getHelps(): array;
    public function isRequired(): bool;
    public function setRequired($label = '__Required field__'): self;
    public function isDisabled(): bool;
    public function setDisabled(bool $v = true): self;
}
