/** * Returns this Price as an associative array. * * @return array */ public function toArray() { $array = parent::toArray(); $array['amount'] = $this->amount; $array['currencyCode'] = $this->currencyCode; $array['formattedPrice'] = $this->formattedPrice; return $array; }