Differential D12025 Diff 28956 src/applications/differential/storage/DifferentialTransactionComment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialTransactionComment.php
| <?php | <?php | ||||
| final class DifferentialTransactionComment | final class DifferentialTransactionComment | ||||
| extends PhabricatorApplicationTransactionComment { | extends PhabricatorApplicationTransactionComment { | ||||
| protected $revisionPHID; | protected $revisionPHID; | ||||
| protected $changesetID; | protected $changesetID; | ||||
| protected $isNewFile = 0; | protected $isNewFile = 0; | ||||
| protected $lineNumber = 0; | protected $lineNumber = 0; | ||||
| protected $lineLength = 0; | protected $lineLength = 0; | ||||
| protected $fixedState; | protected $fixedState; | ||||
| protected $hasReplies = 0; | protected $hasReplies = 0; | ||||
| protected $replyToCommentPHID; | protected $replyToCommentPHID; | ||||
| private $replyToComment = self::ATTACHABLE; | |||||
| public function getApplicationTransactionObject() { | public function getApplicationTransactionObject() { | ||||
| return new DifferentialTransaction(); | return new DifferentialTransaction(); | ||||
| } | } | ||||
| public function attachReplyToComment( | |||||
| DifferentialTransactionComment $comment = null) { | |||||
| $this->replyToComment = $comment; | |||||
| return $this; | |||||
| } | |||||
| public function getReplyToComment() { | |||||
| return $this->assertAttached($this->replyToComment); | |||||
| } | |||||
| protected function getConfiguration() { | protected function getConfiguration() { | ||||
| $config = parent::getConfiguration(); | $config = parent::getConfiguration(); | ||||
| $config[self::CONFIG_COLUMN_SCHEMA] = array( | $config[self::CONFIG_COLUMN_SCHEMA] = array( | ||||
| 'revisionPHID' => 'phid?', | 'revisionPHID' => 'phid?', | ||||
| 'changesetID' => 'id?', | 'changesetID' => 'id?', | ||||
| 'isNewFile' => 'bool', | 'isNewFile' => 'bool', | ||||
| 'lineNumber' => 'uint32', | 'lineNumber' => 'uint32', | ||||
| 'lineLength' => 'uint32', | 'lineLength' => 'uint32', | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||