* @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; /** * Defines interface for form handler result DTO */ interface FormHandlerResultInterface { /** * Check if form is valid and does not contains any errors * * @return bool */ public function isValid(); /** * Check if form was actually submitted * * @return bool */ public function isSubmitted(); /** * Get identifiable object id * * @return int|null ID of identifiable object or null if it does not exist */ public function getIdentifiableObjectId(); }