[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/infrastructure/daemon/bot/ -> PhabricatorBotMessage.php (source)

   1  <?php
   2  
   3  final class PhabricatorBotMessage {
   4  
   5    private $sender;
   6    private $command;
   7    private $body;
   8    private $target;
   9    private $public;
  10  
  11    public function __construct() {
  12      // By default messages are public
  13      $this->public = true;
  14    }
  15  
  16    public function setSender(PhabricatorBotTarget $sender = null) {
  17      $this->sender = $sender;
  18      return $this;
  19    }
  20  
  21    public function getSender() {
  22      return $this->sender;
  23    }
  24  
  25    public function setCommand($command) {
  26      $this->command = $command;
  27      return $this;
  28    }
  29  
  30    public function getCommand() {
  31      return $this->command;
  32    }
  33  
  34    public function setBody($body) {
  35      $this->body = $body;
  36      return $this;
  37    }
  38  
  39    public function getBody() {
  40      return $this->body;
  41    }
  42  
  43    public function setTarget(PhabricatorBotTarget $target = null) {
  44      $this->target = $target;
  45      return $this;
  46    }
  47  
  48    public function getTarget() {
  49      return $this->target;
  50    }
  51  
  52  }


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