src/DTOUrl/Url.php
public function getFullUrl()
    {
        $parts = $this->toArray();
        unset($parts['full_url'], $parts['pass']);

        foreach ($parts as $method => $param) {
            if ($param) {
                $method = 'add' . ucfirst($method);
                $this->$method($param);
            }
        }

        return ltrim(implode($this->fullUrl), '/');
    }
public function getFullUrl()
    {
        $parts = $this->toArray();
        unset($parts['full_url'], $parts['pass']);

        foreach ($parts as $method => $param) {
            if ($param) {
                $method = 'add' . ucfirst($method);
                $this->$method($param);
            }
        }

        return ltrim(implode($this->fullUrl), '/');
    }
public function getFullUrl ( ) { $ parts = $ this -> toArray ( ) ; unset ( $ parts [ 'full_url' ] , $ parts [ 'pass' ] ) ; foreach ( $ parts as $ method => $ param ) { if ( $ param ) { $ method = 'add' . ucfirst ( $ method ) ; $ this -> $ method ( $ param ) ; } } return ltrim ( implode ( $ this -> fullUrl ) , '/' ) ; }
Build the final url based on the structure defined

@return string
Build the final url based on the structure defined