@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class PhabricatorEditor extends Phobject {
4
5 private $actor;
6 private $excludeMailRecipientPHIDs = array();
7
8 final public function setActor(PhabricatorUser $actor) {
9 $this->actor = $actor;
10 return $this;
11 }
12
13 final public function getActor() {
14 return $this->actor;
15 }
16
17 final public function requireActor() {
18 $actor = $this->getActor();
19 if (!$actor) {
20 throw new PhutilInvalidStateException('setActor');
21 }
22 return $actor;
23 }
24
25 final public function setExcludeMailRecipientPHIDs($phids) {
26 $this->excludeMailRecipientPHIDs = $phids;
27 return $this;
28 }
29
30 final protected function getExcludeMailRecipientPHIDs() {
31 return $this->excludeMailRecipientPHIDs;
32 }
33
34}