ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
FileInformation.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
4 
7 
13 class FileInformation implements Information
14 {
15 
19  protected $title = '';
23  protected $suffix = '';
27  protected $mime_type = '';
31  protected $size = 0;
35  protected $creation_date;
36 
37 
38 
42  public function getTitle() : string
43  {
44  return $this->title;
45  }
46 
47 
53  public function setTitle(string $title) : FileInformation
54  {
55  $this->title = $title;
56 
57  return $this;
58  }
59 
60 
64  public function getSuffix() : string
65  {
66  return $this->suffix;
67  }
68 
69 
75  public function setSuffix(string $suffix) : FileInformation
76  {
77  $this->suffix = $suffix;
78 
79  return $this;
80  }
81 
82 
86  public function getMimeType() : string
87  {
88  return $this->mime_type;
89  }
90 
91 
97  public function setMimeType(string $mime_type) : FileInformation
98  {
99  $this->mime_type = $mime_type;
100 
101  return $this;
102  }
103 
104 
108  public function getSize() : int
109  {
110  return $this->size;
111  }
112 
113 
119  public function setSize(int $size) : FileInformation
120  {
121  $this->size = $size;
122 
123  return $this;
124  }
125 
126 
130  public function getCreationDate() : DateTimeImmutable
131  {
132  return $this->creation_date;
133  }
134 
135 
140  {
141  $this->creation_date = $creation_date;
142  }
143 }
setCreationDate(DateTimeImmutable $creation_date)