Example #1
0
 /**
  * Returns information about current shopping cart's items.
  * 
  * @param bool $hierarchy Whether selected services must be included as 'services' sub-array for applicable items.
  *     If false, services are included as separate array items.
  * @return array 
  */
 public function items($hierarchy = true)
 {
     return $this->model->getByCode($this->code, true, $hierarchy);
 }