|
const | DIR = 'provinces' |
|
const | TAX_TYPE_COMPOUNDED = 'compounded' |
|
const | TAX_TYPE_HARMONIZED = 'harmonized' |
|
const | TAX_TYPE_NONE = null |
|
const | TAX_TYPE_NORMAL = 'normal' |
|
const | TYPE = 'province' |
|
const | DIR = '' |
| All subclasses must redeclare this to match their REST directory (without container). More...
|
|
const | TYPE = '' |
| All subclasses must redeclare this to match their types. More...
|
|
const | MAP = [] |
|
const | PATCH = [] |
|
|
| _container () |
| The container/owner object, if any. More...
|
|
mixed | _get (string $field) |
| Lazy-loads missing fields. More...
|
|
void | _onDelete () |
|
void | _onSave () |
|
void | _reload (string $field) |
|
mixed | _hydrate (string $class, $item) |
| A factory that also hydrates / caches entities. More...
|
|
array | _select ($subject, callable $filter,... $args) |
| Magic method: selectField(callable $filter) More...
|
|
$this | _setData (array $data) |
| Clears all diffs and sets all data, hydrating mapped fields. More...
|
|
$this | _setField (string $field, $value) |
| Sets a value, hydrating if mapped, and clears the diff. More...
|
|
|
Api | $api |
|
Pool | $pool |
|
static null self | load ($caller, string $id, array $query=[]) |
|
static self[] | loadAll ($caller, string $path, array $query=[]) |
|
◆ _container()
The container/owner object, if any.
- Returns
- null|AbstractEntity
Reimplemented from AbstractEntity.
◆ getCode()
◆ getCountryId()
magic string getCountryId |
( |
| ) |
|
◆ getName()
◆ getShippingZoneId()
magic string getShippingZoneId |
( |
| ) |
|
◆ getTax()
◆ getTaxName()
magic string getTaxName |
( |
| ) |
|
◆ getTaxPercentage()
magic string getTaxPercentage |
( |
| ) |
|
◆ getTaxType()
magic null string getTaxType |
( |
| ) |
|
◆ setCode()
magic $this setCode |
( |
string |
$code | ) |
|
◆ setName()
magic $this setName |
( |
string |
$name | ) |
|
◆ setShippingZoneId()
magic $this setShippingZoneId |
( |
string |
$id | ) |
|
◆ setTax()
magic $this setTax |
( |
string |
$tax | ) |
|
◆ setTaxName()
magic $this setTaxName |
( |
string |
$name | ) |
|
◆ setTaxPercentage()
magic $this setTaxPercentage |
( |
string |
$percentage | ) |
|
◆ setTaxType()
magic $this setTaxType |
( |
?string |
$type | ) |
|