public function buildPath($pathInfo)
    {
        if (null === $this->getPath()) {
            return $pathInfo;
        }

        return sprintf($this->getPath(), rtrim($pathInfo, '/'));
    }
public function buildPath($pathInfo)
    {
        if (null === $this->getPath()) {
            return $pathInfo;
        }

        return sprintf($this->getPath(), rtrim($pathInfo, '/'));
    }
public function buildPath ( $ pathInfo ) { if ( null === $ this -> getPath ( ) ) { return $ pathInfo ; } return sprintf ( $ this -> getPath ( ) , rtrim ( $ pathInfo , '/' ) ) ; }
Build a path

@param string $pathInfo

@return string
Build a path