Checkout
class Checkout extends ReactiveObject
Traits
Properties
protected array | $hooks | from Hooks | |
protected Event[] | $eventHandlers | from Events | |
protected array | $timestamps | from Timestamps | |
protected array | $attributes | from Accessors | |
array | $modified | from Accessors | |
ReactiveObject|ItemCollection|null | $parent | from ReactiveObject | |
protected array | $defaults | from ReactiveObject | |
protected array | $readOnlyAttributes | from ReactiveObject | |
Carbon | $checkout_start | ||
Carbon | $checkout_end | ||
string | $firstname | ||
string | $surname | ||
string | $company | ||
string | $address | ||
string | $postal | ||
string | $city | ||
string | $shipping_firstname | ||
string | $shipping_surname | ||
string | $shipping_company | ||
string | $shipping_address | ||
string | $shipping_postal | ||
string | $shipping_city | ||
float | $shipping_cost | ||
float | $shipping_tax | ||
float | $shipping_total | ||
float | $expedition_cost | ||
float | $expedition_tax | ||
float | $expedition_total | ||
string | $shipping_tracking_code | ||
string | $shipping_tracking_url | ||
string | $ip | ||
string | $user_agent | ||
Carbon | $updated |
Methods
on(string $eventName, callable $handler = null)
Attaches an event handler for a given event
from
Events
void
trigger(string $eventName, mixed $payload = null)
Invokes the event handlers for the given event
from
Events
__construct(object|array $attributes = [], object|null $parent = null)
No description
from
ReactiveObject
setParent(ReactiveObject|ItemCollection|null $parent)
No description
from
ReactiveObject
static ReactiveObject
factory(object|array $attributes = [], object|null $parent = null)
No description
from
ReactiveObject
getOrderIdAttribute($value)
No description
getShippingCostAttribute($value)
No description
getShippingTaxAttribute($value)
No description
getShippingTotalAttribute($value)
No description
getExpeditionCostAttribute($value)
No description
getExpeditionTaxAttribute($value)
No description
getExpeditionTotalAttribute($value)
No description
getCheckoutStartAttribute($value)
No description
getCheckoutEndAttribute($value)
No description
Details
in
Hooks at line 30
void
performHook(string $name)
in
Hooks at line 40
void
performHooks()
in
Events at line 17
Events
on(string $eventName, callable $handler = null)
Attaches an event handler for a given event
in
Events at line 43
void
emit(string $event, mixed $payload = null)
Emits an event to parent
in
Events at line 57
void
trigger(string $eventName, mixed $payload = null)
Invokes the event handlers for the given event
in
Timestamps at line 18
serializeTimestamp($value)
in
Accessors at line 30
array
toArray()
Get the raw attributes