Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
context.php
1<?php
2
4
5class Context
6{
7 private MailAddresser $addresser;
8 private MailReceiver $receiver;
9 private ?array $changeFields;
10
11 public function __construct(MailAddresser $addresser, MailReceiver $receiver, array $changeFields = null)
12 {
13 $this->addresser = $addresser;
14 $this->receiver = $receiver;
15 $this->changeFields = $changeFields;
16 }
17
18 public static function createInstance(
19 MailAddresser $addresser,
20 MailReceiver $receiver,
21 array $changeFields = null
22 ): Context
23 {
24 return new self($addresser, $receiver, $changeFields);
25 }
26
27 public function getAddresser(): MailAddresser
28 {
29 return $this->addresser;
30 }
31
32 public function setAddresser(MailAddresser $addresser): void
33 {
34 $this->addresser = $addresser;
35 }
36
37
38 public function getReceiver(): MailReceiver
39 {
40 return $this->receiver;
41 }
42
43
44 public function setReceiver(MailReceiver $receiver): void
45 {
46 $this->receiver = $receiver;
47 }
48
49 public function getChangeFields(): ?array
50 {
51 return $this->changeFields;
52 }
53
54 public function setChangeFields(?array $changeFields): void
55 {
56 $this->changeFields = $changeFields;
57 }
58}
setAddresser(MailAddresser $addresser)
Definition context.php:32
static createInstance(MailAddresser $addresser, MailReceiver $receiver, array $changeFields=null)
Definition context.php:18
__construct(MailAddresser $addresser, MailReceiver $receiver, array $changeFields=null)
Definition context.php:11
setReceiver(MailReceiver $receiver)
Definition context.php:44