public static function createEmptyByFilePath(string $filepath) : Repository
    {
        $filename = basename($filepath);
        list($domain, $language, $extension) = explode('.', $filename, 3);

        return new self(
            TranslationCollection::create([]),
            $filepath,
            $language,
            $domain
        );
    }
public static function createEmptyByFilePath(string $filepath) : Repository
    {
        $filename = basename($filepath);
        list($domain, $language, $extension) = explode('.', $filename, 3);

        return new self(
            TranslationCollection::create([]),
            $filepath,
            $language,
            $domain
        );
    }
public static function createEmptyByFilePath ( string $ filepath ) : Repository { $ filename = basename ( $ filepath ) ; list ( $ domain , $ language , $ extension ) = explode ( '.' , $ filename , 3 ) ; return new self ( TranslationCollection :: create ( [ ] ) , $ filepath , $ language , $ domain ) ; }
Create empty repository given it's path.

@param string $filepath

@return Repository
Create empty repository given it s path .