refreshServicesFactory = $args[0]; $this->isHigherThanInstallationVersion = $args[1]; } /** * @return bool */ public function run_admin() { $this->result = true; if ( call_user_func( $this->isHigherThanInstallationVersion, self::WPML_VERSION_SINCE_PREVIEW_LOGOS_AVAILABLE ) ) { $this->result = $this->refreshServicesFactory->create_an_instance()->refresh_services(); } return $this->result; } /** * Unused. * * @return null */ public function run_ajax() { return null; } /** * Unused. * * @return null */ public function run_frontend() { return null; } /** * @return bool */ public function get_results() { return $this->result; } }