Automattic\WooCommerce\Admin\RemoteInboxNotifications

TransformerInterface{}WC 1.0

An interface to define a transformer.

Interface TransformerInterface

Хуков нет.

Использование

$TransformerInterface = new TransformerInterface();
// use class methods

Методы

  1. public transform( $value, stdClass $arguments = null, $default = null)
  2. public validate( stdClass $arguments = null )

Заметки

  • Пакет: Automattic\WooCommerce\Admin\RemoteInboxNotifications

Код TransformerInterface{} WC 7.1.0

interface TransformerInterface {
	/**
	 * Transform given value to a different value.
	 *
	 * @param mixed         $value a value to transform.
	 * @param stdClass|null $arguments arguments.
	 * @param string|null   $default default value.
	 *
	 * @return mixed|null
	 */
	public function transform( $value, stdClass $arguments = null, $default = null);

	/**
	 * Validate Transformer arguments.
	 *
	 * @param stdClass|null $arguments arguments to validate.
	 *
	 * @return mixed
	 */
	public function validate( stdClass $arguments = null );
}