<?php
namespace Adianti\Widget\Form;

/**
 * Form Interface
 *
 * @version    8.2
 * @package    widget
 * @subpackage form
 * @author     Pablo Dall'Oglio
 * @copyright  Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)
 * @license    https://adiantiframework.com.br/license
 */
interface AdiantiFormInterface
{
    public function setName($name);
    public function getName();
    public function addField(AdiantiWidgetInterface $field);
    public function delField(AdiantiWidgetInterface $field);
    public function setFields($fields);
    public function getField($name);
    public function getFields();
    public function clear();
    public function setData($object);
    public function getData($class = 'StdClass');
    public function validate();
    public function show();
}
