public function __isset($name) { if (strpos($name, 'tax_amount_') === 0) { return true; } if (in_array($name, ['due_amount'])) { return true; } if (in_array($name, array_keys(get_object_vars($this)))) { return true; } return parent::__isset($name); }
public function __isset($name) { if (in_array($name, array_keys(get_object_vars($this)))) { return true; } return parent::__isset($name); }