public function prefixName($prefix)
    {
        $name = $this->name();
        if (static::SELF_ATOM === $name) {
            return $this->replaceName($prefix);
        }

        return $this->replaceName($prefix . $name);
    }
public function prefixName($prefix)
    {
        $name = $this->name();
        if (static::SELF_ATOM === $name) {
            return $this->replaceName($prefix);
        }

        return $this->replaceName($prefix . $name);
    }
public function prefixName ( $ prefix ) { $ name = $ this -> name ( ) ; if ( static :: SELF_ATOM === $ name ) { return $ this -> replaceName ( $ prefix ) ; } return $ this -> replaceName ( $ prefix . $ name ) ; }
Prefixes this path's name with a supplied string.

@param string $prefix The string to prefix to the path name.

@return PathInterface                               A new path instance with the supplied string prefixed to the last path atom.
@throws Exception\InvalidPathAtomExceptionInterface If the prefix causes the atom to be invalid.
Prefixes this path s name with a supplied string .