ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
File.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27final class File extends Item
28{
29 public function __construct(
30 private string $path_inside_zip,
31 private string $title,
32 private string $mime_type,
33 private int $size,
34 private \DateTimeImmutable $modification_date,
35 ) {
36 parent::__construct($path_inside_zip, $title);
37 }
38
39 public function getMimeType(): string
40 {
41 return $this->mime_type;
42 }
43
44 public function getSize(): int
45 {
46 return $this->size;
47 }
48
49 public function getModificationDate(): \DateTimeImmutable
50 {
51 return $this->modification_date;
52 }
53
54}
__construct(private string $path_inside_zip, private string $title, private string $mime_type, private int $size, private \DateTimeImmutable $modification_date,)
Definition: File.php:29
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc