private function parseNamespace($filePath): string
    {
        preg_match('/namespace(.*);/', file_get_contents($filePath), $result);
        return isset($result[1]) ? $result[1] . "\\" : '';
    }
private function parseNamespace($filePath): string
    {
        preg_match('/namespace(.*);/', file_get_contents($filePath), $result);
        return isset($result[1]) ? $result[1] . "\\" : '';
    }
private function parseNamespace ( $ filePath ) : string { preg_match ( '/namespace(.*);/' , file_get_contents ( $ filePath ) , $ result ) ; return isset ( $ result [ 1 ] ) ? $ result [ 1 ] . "\\" : '' ; }
Parse the given file to find the namespace.

@param $filePath
@return string
Parse the given file to find the namespace .