create_callback = $create_callback; } public function render() { $translator_settings = call_user_func( $this->create_callback ); if ( ! $translator_settings instanceof WPML_Translator_Settings_Interface ) { throw new RuntimeException( 'Factory method created an invalid object.' ); } return $translator_settings->render(); } }