/** * @param abs_collection_item $item * @param bool $id * @return $this */ function append(abs_collection_item $item, $id = false) { // if external $item->set_container($this); if (false === $id) { $this->items[] = $item; } else { $this->items[$id] = $item; } return $this; }