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