public function getCaptions() { $captions = array(); foreach ($this->captions as $languageId => $caption) { $captions[$languageId] = $caption->getCaption(); } return $captions; }