ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
MailDeliveryData.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function __construct(
24 private readonly string $to,
25 private readonly string $cc,
26 private readonly string $bcc,
27 private readonly string $subject,
28 private readonly string $message,
29 private readonly array $attachments,
30 private readonly bool $use_placeholder,
31 private ?int $internal_mail_id = null
32 ) {
33 }
34
35 public function getTo(): string
36 {
37 return $this->to;
38 }
39
40 public function getCc(): string
41 {
42 return $this->cc;
43 }
44
45 public function getBcc(): string
46 {
47 return $this->bcc;
48 }
49
50 public function getSubject(): string
51 {
52 return $this->subject;
53 }
54
55 public function getMessage(): string
56 {
57 return $this->message;
58 }
59
60 public function getAttachments(): array
61 {
62 return $this->attachments;
63 }
64
65 public function getInternalMailId(): ?int
66 {
67 return $this->internal_mail_id;
68 }
69
70 public function isUsePlaceholder(): bool
71 {
72 return $this->use_placeholder;
73 }
74
75 public function withInternalMailId(int $internal_mail_id): MailDeliveryData
76 {
77 $clone = clone $this;
78 $clone->internal_mail_id = $internal_mail_id;
79 return $clone;
80 }
81}
__construct(private readonly string $to, private readonly string $cc, private readonly string $bcc, private readonly string $subject, private readonly string $message, private readonly array $attachments, private readonly bool $use_placeholder, private ?int $internal_mail_id=null)
withInternalMailId(int $internal_mail_id)
$message
Definition: xapiexit.php:31