/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Form
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Form/FormDataProviderInterface.php (1666B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
namespace PrestaShop\PrestaShop\Core\Form;
use Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException;
/**
* Symfony forms data provider.
*/
interface FormDataProviderInterface
{
/**
* @return array the form data as an associative array
*/
public function getData();
/**
* Persists form Data in Database and Filesystem.
*
* @param array $data
*
* @return array $errors if data can't persisted an array of errors messages
*
* @throws UndefinedOptionsException
*/
public function setData(array $data);
}