示例#1
0
 public function setWith($mixed)
 {
     parent::setWith($mixed);
     $regex = $this->prefix . $this->ipv4 . $this->or . $this->ipv6 . $this->suffix;
     return $this->match($regex, $this->_('%s is not a valid ip', $this));
 }
示例#2
0
 public function setWith($mixed)
 {
     parent::setWith($mixed);
     $regex = $this->prefix . $this->visa . $this->or . $this->mastercard . $this->or . $this->americanExpress . $this->or . $this->dinersClub . $this->or . $this->discover . $this->or . $this->jcb . $this->suffix;
     return $this->match($regex, $this->_('%s is not a valid cb', $this));
 }