Total Complexity | 8 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class Attachment implements AttachmentInterface |
||
13 | { |
||
14 | use PersistableAwareTrait; |
||
15 | use TimestampableAwareTrait; |
||
16 | use LessonAwareTrait; |
||
17 | |||
18 | private $name; |
||
19 | |||
20 | private $fileName; |
||
21 | |||
22 | private $file; |
||
23 | |||
24 | private $mimeType; |
||
25 | |||
26 | public function getName(): ?string |
||
29 | } |
||
30 | |||
31 | public function setName(string $name): void |
||
34 | } |
||
35 | |||
36 | public function getFileName(): ?string |
||
37 | { |
||
38 | return $this->fileName; |
||
39 | } |
||
40 | |||
41 | public function setFileName(?string $fileName): void |
||
42 | { |
||
43 | $this->fileName = $fileName; |
||
44 | } |
||
45 | |||
46 | public function getFile(): ?File |
||
47 | { |
||
48 | return $this->file; |
||
49 | } |
||
50 | |||
51 | public function setFile(File $file): void |
||
52 | { |
||
53 | $this->file = $file; |
||
54 | $this->updated = new DateTimeImmutable(); |
||
55 | } |
||
56 | |||
57 | public function getMimeType(): ?string |
||
58 | { |
||
59 | return $this->mimeType; |
||
60 | } |
||
61 | |||
62 | public function setMimeType(?string $mimeType): void |
||
65 | } |
||
66 | } |
||
67 |