key ); } /** * Validate Transformer arguments. * * @param stdClass|null $arguments arguments to validate. * * @return mixed */ 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; } }