protected function getOutputColumns(AdsStorage $adsStorage) { $outputColumns = $this->outputColumns; if (empty($this->outputColumns)) { $adsStorage->rewind(); $ad = $adsStorage->current(); $outputColumns = $ad->getKeys(); } return $outputColumns; }