mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-16 02:20:54 +01:00
f47e69c015
Summary: Add some more `pht`izations. Test Plan: Eyeball it. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D13200
34 lines
727 B
PHP
34 lines
727 B
PHP
<?php
|
|
|
|
abstract class PhabricatorEditor extends Phobject {
|
|
|
|
private $actor;
|
|
private $excludeMailRecipientPHIDs = array();
|
|
|
|
final public function setActor(PhabricatorUser $actor) {
|
|
$this->actor = $actor;
|
|
return $this;
|
|
}
|
|
|
|
final public function getActor() {
|
|
return $this->actor;
|
|
}
|
|
|
|
final public function requireActor() {
|
|
$actor = $this->getActor();
|
|
if (!$actor) {
|
|
throw new PhutilInvalidStateException('setActor');
|
|
}
|
|
return $actor;
|
|
}
|
|
|
|
final public function setExcludeMailRecipientPHIDs($phids) {
|
|
$this->excludeMailRecipientPHIDs = $phids;
|
|
return $this;
|
|
}
|
|
|
|
final protected function getExcludeMailRecipientPHIDs() {
|
|
return $this->excludeMailRecipientPHIDs;
|
|
}
|
|
|
|
}
|