ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
UploadedFileRevision.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
4
8
15{
16
20 private $upload;
21
22
27 {
28 $this->upload = $result;
31 $information->setTitle($result->getName());
32 $information->setMimeType($result->getMimeType());
33 $information->setSize($result->getSize());
34 $information->setCreationDate(new \DateTimeImmutable());
36 }
37
38
42 public function getUpload() : UploadResult
43 {
44 return $this->upload;
45 }
46}
$result
An exception for terminatinating execution or to throw for unit testing.
setInformation(Information $information)
__construct(ResourceIdentification $identification, UploadResult $result)
@inheritDoc
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc