Automattic\WooCommerce\Admin\RemoteInboxNotifications
TransformerInterface{}
Устарела с версии 9.4.0. Больше не поддерживается и может быть удалена. Используйте
\Automattic\WooCommerce\Admin\RemoteSpecs\Transformers\TransformerInterface
.An interface to define a transformer.
Interface TransformerInterface
Хуков нет.
Использование
$TransformerInterface = new TransformerInterface(); // use class methods
Методы
- public transform( $value, ?stdClass $arguments = null, $default_value = null )
- ERROR: no method name found on line `*`
- public validate( ?stdClass $arguments = null )
- ERROR: no method name found on line `/**`
Заметки
- Пакет: Automattic\WooCommerce\Admin\RemoteInboxNotifications
Список изменений
Устарела с 9.4.0 | Use \Automattic\WooCommerce\Admin\RemoteSpecs\Transformers\TransformerInterface instead. |
Код TransformerInterface{} TransformerInterface{} WC 9.7.1
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_value default value. * * @return mixed|null */ public function transform( $value, ?stdClass $arguments = null, $default_value = null ); /** * Validate Transformer arguments. * * @param stdClass|null $arguments arguments to validate. * * @return mixed */ public function validate( ?stdClass $arguments = null ); }