/** * {@inheritdoc} */ public function offsetGet($index) { if (!$this->is_ordered) { $this->sort_services(); } return parent::offsetGet($index); }
/** * {@inheritdoc} */ public function current() { return $this->collection->offsetGet($this->key()); }