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;
	}
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
Check if a Phonenumber is valid