Пример #1
0
 /**
  * Return the key of the current element
  * @return null|int
  */
 public function key()
 {
     return $this->valid() ? $this->current->getIntValue() : null;
 }
Пример #2
0
 /**
  * @param  IP   $ip
  * @return bool
  */
 public function includesIP(IP $ip)
 {
     return $this->start->getIntValue() <= $ip->getIntValue() && $this->end->getIntValue() >= $ip->getIntValue();
 }