public function get($format)
{
if (!isset($this->files[$format])) {
return $this->files[$format] = new OutputFile();
}
return $this->files[$format];
}
private function loadOutputFiles(OutputFileList $list, array $ids) { foreach ($ids as $format => $id) { $path = $this->getOutputFilePath($id); $list->get($format)->setPath($path)->setId($id); } }