items = $items; foreach ($items as $item) { parent::append($item); } } /** * @return DbStatement[] */ public function fetchAll() { return (array) $this; } /** * @param $field * @return mixed */ public function fetchField($field) { $item = $this->offsetGet(0); return $item->{$field}; } /** * @return mixed */ public function fetch() { return $this->offsetGet(0); } }