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

        return $this->createPath(
            $this->atoms(),
            $this instanceof AbsolutePathInterface,
            true
        );
    }
public function joinTrailingSlash()
    {
        if ($this->hasTrailingSeparator()) {
            return $this;
        }

        return $this->createPath(
            $this->atoms(),
            $this instanceof AbsolutePathInterface,
            true
        );
    }
public function joinTrailingSlash ( ) { if ( $ this -> hasTrailingSeparator ( ) ) { return $ this ; } return $ this -> createPath ( $ this -> atoms ( ) , $ this instanceof AbsolutePathInterface , true ) ; }
Adds a trailing slash to this path.

@return PathInterface A new path instance with a trailing slash suffixed to this path.
Adds a trailing slash to this path .