* @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\Handler; use Symfony\Component\Form\FormInterface; /** * Defines interface for handling identifiable object's form. */ interface FormHandlerInterface { /** * Handles form by creating new object. * * @param FormInterface $form * * @return FormHandlerResultInterface */ public function handle(FormInterface $form); /** * Handles form for given object. * * @param int $id * @param FormInterface $form * * @return FormHandlerResultInterface */ public function handleFor($id, FormInterface $form); }