Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/PhabricatorEditor.php
| Show All 11 Lines | abstract class PhabricatorEditor extends Phobject { | ||||
| final public function getActor() { | final public function getActor() { | ||||
| return $this->actor; | return $this->actor; | ||||
| } | } | ||||
| final public function requireActor() { | final public function requireActor() { | ||||
| $actor = $this->getActor(); | $actor = $this->getActor(); | ||||
| if (!$actor) { | if (!$actor) { | ||||
| throw new Exception('You must setActor()!'); | throw new PhutilInvalidStateException('setActor'); | ||||
| } | } | ||||
| return $actor; | return $actor; | ||||
| } | } | ||||
| final public function setExcludeMailRecipientPHIDs($phids) { | final public function setExcludeMailRecipientPHIDs($phids) { | ||||
| $this->excludeMailRecipientPHIDs = $phids; | $this->excludeMailRecipientPHIDs = $phids; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final protected function getExcludeMailRecipientPHIDs() { | final protected function getExcludeMailRecipientPHIDs() { | ||||
| return $this->excludeMailRecipientPHIDs; | return $this->excludeMailRecipientPHIDs; | ||||
| } | } | ||||
| } | } | ||||