Inheritance diagram for Data:A data-object supporting annotated magic access.
Public Properties | |
| const | MAP = [] |
| const | PATCH = [] |
Protected Properties | |
| Api | $api |
| Pool | $pool |
Public Methods | |
| mixed | __call (string $method, array $args) |
| __construct ($caller, array $data=[]) | |
| string | serialize () |
| Dehydrated JSON encode. More... | |
| array | toArray () |
| void | unserialize ($serialized) |
Protected Methods | |
| 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... | |
| mixed __call | ( | string | $method, |
| array | $args | ||
| ) |
| string | $method | |
| array | $args |
|
protected |
A factory that also hydrates / caches entities.
| string | $class | |
| mixed | $item |
|
protected |
|
protected |
Clears all diffs and sets all data, hydrating mapped fields.
| array | $data |
Reimplemented in Customer, and AbandonedCheckout.
|
protected |
Sets a value, hydrating if mapped, and clears the diff.
| string | $field | |
| mixed | $value |
| string serialize | ( | ) |
Dehydrated JSON encode.
| array toArray | ( | ) |
| void unserialize | ( | $serialized | ) |
| $serialized |