[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/infrastructure/ -> PhabricatorEditor.php (source)

   1  <?php
   2  
   3  abstract 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 Exception('You must 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  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1