public static function hydrate(stdClass $language)
    {
        $hydrated = new LanguageEntity();

        if (isset($language->id)) {
            $hydrated->setId($language->id);
        }

        if (isset($language->name)) {
            $hydrated->setName($language->name);
        }

        if (isset($language->file_extensions)) {
            $hydrated->setFileExtensions($language->file_extensions);
        }

        if (isset($language->config_file_extensions)) {
            $hydrated->setConfigFileExtensions($language->config_file_extensions);
        }

        return $hydrated;
    }