<?phpdeclare(strict_types=1);namespace App\Domain\Common\Constraints;use Novaway\CoreBundle\Constraints\FrenchPhone;/** * @Annotation * @Target({"PROPERTY","ANNOTATION"}) */class FrenchMobilePhone extends FrenchPhone{ const PATTERN = '/^((\+|00)33\s?|0)[6-7](\s?\d{2}){4}$/'; const MESSAGE = 'Le format attendu est (+33|0033|0)(6|7) 23 45 67 89'; public $message = self::MESSAGE; public $pattern = self::PATTERN;}