[phonenumber validation] allow to validate against landline and mobile

phonenumbers
This commit is contained in:
2020-02-10 13:03:57 +01:00
parent d46ee72fb1
commit e348616d00
5 changed files with 30 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ use Symfony\Component\Validator\Constraint;
/**
*
*
* @Annotation
*/
class PhonenumberConstraint extends Constraint
{
@@ -29,10 +29,12 @@ class PhonenumberConstraint extends Constraint
public $notLandlineMessage = "This is not a landline phonenumber";
public $notValidMessage = "This is not a valid phonenumber";
/**
* The type of phone: landline (not able to receive sms) or mobile (can receive sms)
*
* @var string 'landline' or 'mobile'
* @var string 'landline', 'mobile' or 'any'
*/
public $type = null;