/** * @inheritdoc */ function create($args) { $download = new Download(); $download->setTitle($args['title']); $download->setText($args['text']); $download->setFile($this->createImage($args['file'])); return $download; }