src/Sasedev/Commons/SharedBundle/Validator/PhoneValidator.php
public function isValid($value, Constraint $constraint)
	{
		if (empty($value)) {
			return true;
		}
		
		$ret = $this->validateNumber($value, $constraint->format);
		
		if (!$ret) {
			$this->setMessage($constraint->message);
		}
		
		return $ret;
	}
public function isValid($value, Constraint $constraint)
	{
		if (empty($value)) {
			return true;
		}
		
		$ret = $this->validateNumber($value, $constraint->format);
		
		if (!$ret) {
			$this->setMessage($constraint->message);
		}
		
		return $ret;
	}
Check if a Phonenumber is valid

@param string $value
@param Constraint $constraint

@return bool