Differential D21276 Diff 50670 src/infrastructure/diff/inline/PhabricatorDiffInlineCommentContentState.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/inline/PhabricatorDiffInlineCommentContentState.php
| <?php | <?php | ||||
| final class PhabricatorDiffInlineCommentContentState | final class PhabricatorDiffInlineCommentContentState | ||||
| extends PhabricatorInlineCommentContentState { | extends PhabricatorInlineCommentContentState { | ||||
| private $hasSuggestion = false; | private $hasSuggestion = false; | ||||
| private $suggestionText = ''; | private $suggestionText = ''; | ||||
| public function isEmptyContentState() { | public function isEmptyContentState() { | ||||
| if (!parent::isEmptyContentState()) { | if (!parent::isEmptyContentState()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if ($this->getContentHasSuggestion()) { | if ($this->getContentHasSuggestion()) { | ||||
| if (strlen($this->getSuggestionText())) { | if (strlen($this->getContentSuggestionText())) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function setContentSuggestionText($suggestion_text) { | public function setContentSuggestionText($suggestion_text) { | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||