public function getPathVar(string $name)
    {
        if (isset($this->pathVars[$name])) {
            return $this->pathVars[$name];
        }

        return null;
    }
public function getPathVar(string $name)
    {
        if (isset($this->pathVars[$name])) {
            return $this->pathVars[$name];
        }

        return null;
    }
public function getPathVar ( string $ name ) { if ( isset ( $ this -> pathVars [ $ name ] ) ) { return $ this -> pathVars [ $ name ] ; } return null ; }
Gets the value of a path variable

@param string $name The name of the variable to get
@return mixed|null The value of the variable if it exists, otherwise null
Gets the value of a path variable