flatten_version( WPSEO_VERSION ); } $this->asset_location = WPSEO_Admin_Asset_Manager::create_default_location(); $asset_arguments = array( 'name' => $name, 'src' => 'wp-seo-' . $name . '-' . $flat_version, ); $this->asset = new WPSEO_Admin_Asset( $asset_arguments ); } /** * Retrieves the analysis worker asset. * * @return WPSEO_Admin_Asset The analysis worker asset. */ public function get_asset() { return $this->asset; } /** * Determines the URL of the asset on the dev server. * * @param WPSEO_Admin_Asset $asset The asset to determine the URL for. * @param string $type The type of asset. Usually JS or CSS. * * @return string The URL of the asset. */ public function get_url( WPSEO_Admin_Asset $asset, $type ) { return $this->asset_location->get_url( $asset, $type ); } }