$cart->toArray()
Converts the object into an array
$cart->toArray(null|Closure $map = null): array
Parameters
| Name | Type | Default |
|---|---|---|
$map |
null or Closure |
null |
Return type
array
Parent class
Wagnerwagner\Merx\Cart inherited from Kirby\Toolkit\Collection