* @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\IdentifiableObject\Builder; use Symfony\Component\Form\FormInterface; /** * Defines contract for identifiable object form factories. */ interface FormBuilderInterface { /** * Create new form. * * @param array $data * @param array $options * * @return FormInterface */ public function getForm(array $data = [], array $options = []); /** * Create new form for given object. * * @param int $id * @param array $data * @param array $options * * @return FormInterface */ public function getFormFor($id, array $data = [], array $options = []); }