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;
    }
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;
    }
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 ; }
Hydrate a language object into a LanguageEntity object

@param stdClass $language
@return LanguageEntity
Hydrate a language object into a LanguageEntity object