| Method | Description | Returns |
|---|---|---|
| getPersonIds() | Gets the person IDs for this condition. | array |
| getAction() | Gets the action type for this condition (allow or forbid). | string |
| isAllowed() | Checks if the action is allowed for the current condition | bool |
| isForbidden() | Checks if the action is forbidden for the current condition | bool |
| getDisplayType() | Returns the nice name of a condition type | string |
| getType() | Returns the type of condition | string |
| getSnakeType() | Returns the type of condition in the snake case format: lowercase and connected by underline | string |
| getSlugType() | Returns the type of condition in the slug format: lowercase and connected by hyphen | string |
| getId() | int | |
| getName() | string | |
| getData() | array | |
| isActive() | bool | |
| getCreated() | Date the record was created. | DateTime |
| getModified() | Last modification date for the record. | DateTime |
| getRule() | Rule | |
| isNewRecord() | Check if the record is a new record | bool |
| isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
| isVersionedModel() | Check whether a model is versioned | bool |
Discounts\Models\Frontend\PersonCondition
Person condition describes the conditions that need to be met for the discount to be applied; based on specific emails. The discount will only be applicable to the selected emails and can either allow or forbid the discount application.