public function setCurrentURI($uri) {
        if(is_string($uri) && !empty(trim($uri))){
            $this->currentURI = $uri;
            $this->currentArray = Levels::getCurrent($this->navigation, $this->currentURI);
        }
        else{
            throw new InvalidArgumentException(
                '$uri must be a valid string when seting the current URI'
            );
        }
        return $this;
    }
public function setCurrentURI($uri) {
        if(is_string($uri) && !empty(trim($uri))){
            $this->currentURI = $uri;
            $this->currentArray = Levels::getCurrent($this->navigation, $this->currentURI);
        }
        else{
            throw new InvalidArgumentException(
                '$uri must be a valid string when seting the current URI'
            );
        }
        return $this;
    }
public function setCurrentURI ( $ uri ) { if ( is_string ( $ uri ) && ! empty ( trim ( $ uri ) ) ) { $ this -> currentURI = $ uri ; $ this -> currentArray = Levels :: getCurrent ( $ this -> navigation , $ this -> currentURI ) ; } else { throw new InvalidArgumentException ( '$uri must be a valid string when seting the current URI' ) ; } return $ this ; }
Sets the current active URI
@param string $uri This should be the string URI of the active link
@return $this
Sets the current active URI