public function stripTrailingSlash()
    {
        if (!$this->hasTrailingSeparator()) {
            return $this;
        }

        return $this->createPath(
            $this->atoms(),
            $this instanceof AbsolutePathInterface,
            false
        );
    }
public function stripTrailingSlash()
    {
        if (!$this->hasTrailingSeparator()) {
            return $this;
        }

        return $this->createPath(
            $this->atoms(),
            $this instanceof AbsolutePathInterface,
            false
        );
    }
public function stripTrailingSlash ( ) { if ( ! $ this -> hasTrailingSeparator ( ) ) { return $ this ; } return $ this -> createPath ( $ this -> atoms ( ) , $ this instanceof AbsolutePathInterface , false ) ; }
Strips the trailing slash from this path.

@return PathInterface A new path instance with the trailing slash removed from this path. If this path has no trailing slash, the path is returned unmodified.
Strips the trailing slash from this path .