* @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\ConstraintValidator\Constraints; use PrestaShop\PrestaShop\Core\ConstraintValidator\ExistingCustomerEmailValidator; use Symfony\Component\Validator\Constraint; /** * Validation constraint for checking if customer with given email exists in current shop context */ class ExistingCustomerEmail extends Constraint { public $message = 'This email address is not registered.'; /** * {@inheritdoc} */ public function validatedBy() { return ExistingCustomerEmailValidator::class; } }