src/IPAddress.php
public static function fromParts(array $octets): IPAddressInterface
    {
        if (!self::myValidateOctets($octets, $error)) {
            throw new IPAddressInvalidArgumentException('Octets are invalid: ' . $error);
        }

        return new self($octets);
    }
public static function fromParts(array $octets): IPAddressInterface
    {
        if (!self::myValidateOctets($octets, $error)) {
            throw new IPAddressInvalidArgumentException('Octets are invalid: ' . $error);
        }

        return new self($octets);
    }
public static function fromParts ( array $ octets ) : IPAddressInterface { if ( ! self :: myValidateOctets ( $ octets , $ error ) ) { throw new IPAddressInvalidArgumentException ( 'Octets are invalid: ' . $ error ) ; } return new self ( $ octets ) ; }
Creates an IP address from octets.

@since 1.0.0

@param int[] $octets The octets.

@throws \InvalidArgumentException         If the octets parameter is not an array of integers.
@throws IPAddressInvalidArgumentException If the $octets parameter is not a valid array of octets.

@return IPAddressInterface The IP address.
Creates an IP address from octets .