Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
woocommerce
/
src
/
Admin
/
RemoteSpecs
/
RuleProcessors
/
Transformers
:
TransformerInterface.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors\Transformers; use stdClass; /** * An interface to define a transformer. * * Interface TransformerInterface * * @package Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors\Transformers */ 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 ); }