ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
FileTreeProxy.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\WebDAV\Objects;
22
26class FileTreeProxy extends TreeProxy implements FileProxy
27{
28 public function __construct(
29 int $ref_id,
30 int $obj_id,
31 string $title,
32 int $last_update,
33 protected ?string $content_type = '',
34 protected ?int $size = 0,
35 protected ?StreamHandler $stream_resolver = null,
36 ) {
38 $ref_id,
39 $obj_id,
40 $title,
41 $last_update,
42 Type::FILE
43 );
44 }
45
46 public function getContentType(): ?string
47 {
48 return $this->content_type;
49 }
50
51 public function getStreamHandler(): ?StreamHandler
52 {
53 return $this->stream_resolver;
54 }
55
56 public function getSize(): ?int
57 {
58 return $this->size;
59 }
60
61}
__construct(int $ref_id, int $obj_id, string $title, int $last_update, protected ?string $content_type='', protected ?int $size=0, protected ?StreamHandler $stream_resolver=null,)
$ref_id
Definition: ltiauth.php:66
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc