Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialInlineComment.php
| <?php | <?php | ||||
| final class DifferentialInlineComment | final class DifferentialInlineComment | ||||
| implements PhabricatorInlineCommentInterface { | implements PhabricatorInlineCommentInterface { | ||||
| private $proxy; | private $proxy; | ||||
| private $syntheticAuthor; | private $syntheticAuthor; | ||||
| private $isGhost; | |||||
| public function __construct() { | public function __construct() { | ||||
| $this->proxy = new DifferentialTransactionComment(); | $this->proxy = new DifferentialTransactionComment(); | ||||
| } | } | ||||
| public function __clone() { | public function __clone() { | ||||
| $this->proxy = clone $this->proxy; | $this->proxy = clone $this->proxy; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | public function setFixedState($state) { | ||||
| $this->proxy->setFixedState($state); | $this->proxy->setFixedState($state); | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getFixedState() { | public function getFixedState() { | ||||
| return $this->proxy->getFixedState(); | return $this->proxy->getFixedState(); | ||||
| } | } | ||||
| public function setIsGhost($is_ghost) { | |||||
| $this->isGhost = $is_ghost; | |||||
| return $this; | |||||
| } | |||||
| public function getIsGhost() { | |||||
| return $this->isGhost; | |||||
| } | |||||
| public function makeEphemeral() { | |||||
| $this->proxy->makeEphemeral(); | |||||
| return $this; | |||||
| } | |||||
| /* -( PhabricatorMarkupInterface Implementation )-------------------------- */ | /* -( PhabricatorMarkupInterface Implementation )-------------------------- */ | ||||
| public function getMarkupFieldKey($field) { | public function getMarkupFieldKey($field) { | ||||
| // We can't use ID because synthetic comments don't have it. | // We can't use ID because synthetic comments don't have it. | ||||
| return 'DI:'.PhabricatorHash::digest($this->getContent()); | return 'DI:'.PhabricatorHash::digest($this->getContent()); | ||||
| } | } | ||||
| Show All 19 Lines | |||||