protected function parse(): void
    {
        switch ($this->notation) {

            case self::NOTATION_DOT_DECIMAL:
                $this->fromDotDecimal($this->value);
                break;

            case self::NOTATION_BINARY:
                $this->fromBinary($this->value);
                break;

            case self::NOTATION_CIDR_SHORT:
                $this->fromCidrShort($this->value);
                break;

            case self::NOTATION_CIDR_LONG:
                $this->fromCidrLong($this->value);
                break;

            case self::NOTATION_CIDR_BINARY:
                $this->fromCidrBinary($this->value);
                break;

            default:
                $this->notation = self::NOTATION_INVALID;
        }
    }
protected function parse(): void
    {
        switch ($this->notation) {

            case self::NOTATION_DOT_DECIMAL:
                $this->fromDotDecimal($this->value);
                break;

            case self::NOTATION_BINARY:
                $this->fromBinary($this->value);
                break;

            case self::NOTATION_CIDR_SHORT:
                $this->fromCidrShort($this->value);
                break;

            case self::NOTATION_CIDR_LONG:
                $this->fromCidrLong($this->value);
                break;

            case self::NOTATION_CIDR_BINARY:
                $this->fromCidrBinary($this->value);
                break;

            default:
                $this->notation = self::NOTATION_INVALID;
        }
    }
protected function parse ( ) : void { switch ( $ this -> notation ) { case self :: NOTATION_DOT_DECIMAL : $ this -> fromDotDecimal ( $ this -> value ) ; break ; case self :: NOTATION_BINARY : $ this -> fromBinary ( $ this -> value ) ; break ; case self :: NOTATION_CIDR_SHORT : $ this -> fromCidrShort ( $ this -> value ) ; break ; case self :: NOTATION_CIDR_LONG : $ this -> fromCidrLong ( $ this -> value ) ; break ; case self :: NOTATION_CIDR_BINARY : $ this -> fromCidrBinary ( $ this -> value ) ; break ; default : $ this -> notation = self :: NOTATION_INVALID ; } }
Parses the given value into the desired format.

@return void
Parses the given value into the desired format .