automatewoo/includes/Rules/Customer_City.php
fei-source 47d3c9a8b6 Update to v6.2.2
Source: GrootMade/Festinger Vault
2026-03-15 08:31:15 +08:00

31 lines
544 B
PHP

<?php
// phpcs:ignoreFile
namespace AutomateWoo\Rules;
defined( 'ABSPATH' ) || exit;
/**
* @class Customer_City
*/
class Customer_City extends Abstract_String {
public $data_item = 'customer';
function init() {
$this->title = __( 'Customer - City', 'automatewoo' );
}
/**
* @param $customer \AutomateWoo\Customer
* @param $compare
* @param $value
* @return bool
*/
function validate( $customer, $compare, $value ) {
return $this->validate_string( $this->data_layer()->get_customer_city(), $compare, $value );
}
}