library/Extlib/System/Url.php
public function setAddress($address)
    {
        $address = trim($address, self::SEPARATOR);
        if (!filter_var($address, FILTER_VALIDATE_URL)) {
            throw new \InvalidArgumentException("$address is not valid format of url address.");
        }

        $this->address = $address;
        $this->parse = parse_url($address);
        return $this;
    }
public function setAddress($address)
    {
        $address = trim($address, self::SEPARATOR);
        if (!filter_var($address, FILTER_VALIDATE_URL)) {
            throw new \InvalidArgumentException("$address is not valid format of url address.");
        }

        $this->address = $address;
        $this->parse = parse_url($address);
        return $this;
    }
Set url address

@param string $address
@return \Extlib\System\Url