for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SLLH\IsoCodesValidator\Constraints;
use SLLH\IsoCodesValidator\AbstractConstraint;
/**
* @Annotation
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
*
* @author Sullivan Senechal <[email protected]>
*/
final class PhoneNumber extends AbstractConstraint
{
const ALL = 'all';
public $country = self::ALL;
public $message = 'This value is not a valid phone number.';
* {@inheritdoc}
public function __construct($options = null)
parent::__construct($options);
// TODO: Check if country is available as for ZipCode.
}
public function getIsoCodesVersion()
return '2.1.0';
public function getIsoCodesClass()
return \IsoCodes\PhoneNumber::class;