Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/metamta/engine/PhabricatorMailMessageEngine.php
12256 views
1
<?php
2
3
abstract class PhabricatorMailMessageEngine
4
extends Phobject {
5
6
private $mailer;
7
private $mail;
8
private $actors = array();
9
private $preferences;
10
11
final public function setMailer(PhabricatorMailAdapter $mailer) {
12
13
$this->mailer = $mailer;
14
return $this;
15
}
16
17
final public function getMailer() {
18
return $this->mailer;
19
}
20
21
final public function setMail(PhabricatorMetaMTAMail $mail) {
22
$this->mail = $mail;
23
return $this;
24
}
25
26
final public function getMail() {
27
return $this->mail;
28
}
29
30
final public function setActors(array $actors) {
31
assert_instances_of($actors, 'PhabricatorMetaMTAActor');
32
$this->actors = $actors;
33
return $this;
34
}
35
36
final public function getActors() {
37
return $this->actors;
38
}
39
40
final public function getActor($phid) {
41
return idx($this->actors, $phid);
42
}
43
44
final public function setPreferences(
45
PhabricatorUserPreferences $preferences) {
46
$this->preferences = $preferences;
47
return $this;
48
}
49
50
final public function getPreferences() {
51
return $this->preferences;
52
}
53
54
}
55
56