ILIAS  release_7 Revision v7.30-3-g800a261c036
FileStreamConsumer.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
4
8
14{
15 use GetRevisionTrait;
16
24 private $resource;
28 protected $revision_number = null;
29
36 {
37 $this->resource = $resource;
38 $this->storage_handler = $storage_handler;
39 }
40
41 public function getStream() : FileStream
42 {
43 $revision = $this->getRevision();
44
45 return $this->storage_handler->getStream($revision);
46 }
47
52 {
53 $this->revision_number = $revision_number;
54 return $this;
55 }
56
57}
An exception for terminatinating execution or to throw for unit testing.
setRevisionNumber(int $revision_number)
@inheritDoc
__construct(StorableResource $resource, StorageHandler $storage_handler)
DownloadConsumer constructor.
Interface FileStream The base interface for all filesystem streams.
Definition: FileStream.php:18