Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors\Transformers
ArrayColumn::validate()
Validate Transformer arguments.
Method of the class: ArrayColumn{}
No Hooks.
Return
Mixed
.
Usage
$ArrayColumn = new ArrayColumn(); $ArrayColumn->validate( ?stdClass $arguments );
- ?stdClass $arguments **
- -
Default: null
ArrayColumn::validate() ArrayColumn::validate code WC 9.7.1
public function validate( ?stdClass $arguments = null ) { if ( ! isset( $arguments->key ) ) { return false; } if ( null !== $arguments->key && ! is_string( $arguments->key ) && ! is_int( $arguments->key ) ) { return false; } return true; }