private function hydrateRowContainer($rowContainer) { if (is_array($this->currentFilter->getPairs())) { return $rowContainer; } if ($this->currentFilter->isFind()) { $rows = []; foreach ($rowContainer as $row) { $rows[] = $this->hydrateRow($row); } return $rows; } if ($this->currentFilter->isGet()) { return $this->hydrateRow($rowContainer); } throw new StorageException('Can\'not determine hydratation mode.'); }