protected function setUriParts(array $parts)
    {
        foreach ($parts as $key => $value) {
            if (!method_exists($this, "set$key")) {
                continue;
            }
            $this->{"set$key"}($value);
        }
    }
protected function setUriParts(array $parts)
    {
        foreach ($parts as $key => $value) {
            if (!method_exists($this, "set$key")) {
                continue;
            }
            $this->{"set$key"}($value);
        }
    }
protected function setUriParts ( array $ parts ) { foreach ( $ parts as $ key => $ value ) { if ( ! method_exists ( $ this , "set$key" ) ) { continue ; } $ this -> { "set$key" } ( $ value ) ; } }
Set the URI parts

@param array $parts
Set the URI parts