HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/coolswim/wp-content/plugins/woocommerce-multilingual/classes/PointerUi/Factory.php
<?php

namespace WCML\PointerUi;

use WPML\FP\Obj;
use WCML_Pointer_UI;

class Factory {

	/**
	 * @param array $args
	 *
	 * @return WCML_Pointer_UI
	 */
	public static function create( $args ) {
		$defaultArgs = [
			'anchor'     => __( 'How to translate this?', 'woocommerce-multilingual' ),
			'content'    => '',
			'docLink'    => null,
			'selectorId' => null,
			'method'     => 'after',
		];
		$args        = wp_parse_args( $args, $defaultArgs );

		return new WCML_Pointer_UI(
			Obj::prop( 'content', $args ),
			Obj::prop( 'docLink', $args ),
			Obj::prop( 'selectorId', $args ),
			Obj::prop( 'method', $args ),
			Obj::prop( 'anchor', $args )
		);
	}

}