ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
MailFilterData.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use DateTimeImmutable;
24
30{
31 public function __construct(
32 private readonly ?string $sender,
33 private readonly ?string $recipients,
34 private readonly ?string $subject,
35 private readonly ?string $body,
36 private readonly ?string $attachment,
37 private readonly ?DateTimeImmutable $period_start,
38 private readonly ?DateTimeImmutable $period_end,
39 private readonly ?bool $is_unread,
40 private readonly ?bool $is_system,
41 private readonly ?bool $has_attachment
42 ) {
43 }
44
45 public function getSender(): ?string
46 {
47 return $this->sender;
48 }
49
50 public function getRecipients(): ?string
51 {
52 return $this->recipients;
53 }
54
55 public function getSubject(): ?string
56 {
57 return $this->subject;
58 }
59
60 public function getBody(): ?string
61 {
62 return $this->body;
63 }
64
65 public function getAttachment(): ?string
66 {
67 return $this->attachment;
68 }
69
70 public function getPeriodStart(): ?DateTimeImmutable
71 {
72 return $this->period_start;
73 }
74
75 public function getPeriodEnd(): ?DateTimeImmutable
76 {
77 return $this->period_end;
78 }
79
80 public function isUnread(): ?bool
81 {
82 return $this->is_unread;
83 }
84
85 public function isSystem(): ?bool
86 {
87 return $this->is_system;
88 }
89
90 public function hasAttachment(): ?bool
91 {
92 return $this->has_attachment;
93 }
94}
Filter data for display of mail records Properties with null value will not be applied as a filter.
__construct(private readonly ?string $sender, private readonly ?string $recipients, private readonly ?string $subject, private readonly ?string $body, private readonly ?string $attachment, private readonly ?DateTimeImmutable $period_start, private readonly ?DateTimeImmutable $period_end, private readonly ?bool $is_unread, private readonly ?bool $is_system, private readonly ?bool $has_attachment)