src/Traits/PathTrait.php
private function myToString(string $directorySeparator, ?callable $stringEncoder = null): string
    {
        return $this->myDirectoryToString($directorySeparator, $stringEncoder) . $this->myFilenameToString($stringEncoder);
    }
private function myToString(string $directorySeparator, ?callable $stringEncoder = null): string
    {
        return $this->myDirectoryToString($directorySeparator, $stringEncoder) . $this->myFilenameToString($stringEncoder);
    }
private function myToString ( string $ directorySeparator , ? callable $ stringEncoder = null ) : string { return $ this -> myDirectoryToString ( $ directorySeparator , $ stringEncoder ) . $ this -> myFilenameToString ( $ stringEncoder ) ; }
Returns the path as a string.

@param string        $directorySeparator The directory separator.
@param callable|null $stringEncoder      The string encoding function or null if parts should not be encoded.

@return string The path as a string.
Returns the path as a string .