public function getAddressType(AddressInterface $address)
    {
        $result = null;
        if ($this->range->contains($address)) {
            foreach ($this->exceptions as $exception) {
                $result = $exception->getAddressType($address);
                if ($result !== null) {
                    break;
                }
            }
            if ($result === null) {
                $result = $this->type;
            }
        }

        return $result;
    }
public function getAddressType(AddressInterface $address)
    {
        $result = null;
        if ($this->range->contains($address)) {
            foreach ($this->exceptions as $exception) {
                $result = $exception->getAddressType($address);
                if ($result !== null) {
                    break;
                }
            }
            if ($result === null) {
                $result = $this->type;
            }
        }

        return $result;
    }
public function getAddressType ( AddressInterface $ address ) { $ result = null ; if ( $ this -> range -> contains ( $ address ) ) { foreach ( $ this -> exceptions as $ exception ) { $ result = $ exception -> getAddressType ( $ address ) ; if ( $ result !== null ) { break ; } } if ( $ result === null ) { $ result = $ this -> type ; } } return $ result ; }
Get the assigned type for a specific address.

@param \IPLib\Address\AddressInterface $address

@return int|null return NULL of the address is outside this address; a \IPLib\Range\Type::T_ constant otherwise
Get the assigned type for a specific address .