Differential D21186 Diff 50451 src/applications/differential/render/DifferentialChangesetRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetRenderer.php
| Show First 20 Lines • Show All 257 Lines • ▼ Show 20 Lines | abstract class DifferentialChangesetRenderer extends Phobject { | ||||
| } | } | ||||
| public function getDocumentEngineBlocks() { | public function getDocumentEngineBlocks() { | ||||
| return $this->documentEngineBlocks; | return $this->documentEngineBlocks; | ||||
| } | } | ||||
| public function setNewComments(array $new_comments) { | public function setNewComments(array $new_comments) { | ||||
| foreach ($new_comments as $line_number => $comments) { | foreach ($new_comments as $line_number => $comments) { | ||||
| assert_instances_of($comments, 'PhabricatorInlineCommentInterface'); | assert_instances_of($comments, 'PhabricatorInlineComment'); | ||||
| } | } | ||||
| $this->newComments = $new_comments; | $this->newComments = $new_comments; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| protected function getNewComments() { | protected function getNewComments() { | ||||
| return $this->newComments; | return $this->newComments; | ||||
| } | } | ||||
| public function setOldComments(array $old_comments) { | public function setOldComments(array $old_comments) { | ||||
| foreach ($old_comments as $line_number => $comments) { | foreach ($old_comments as $line_number => $comments) { | ||||
| assert_instances_of($comments, 'PhabricatorInlineCommentInterface'); | assert_instances_of($comments, 'PhabricatorInlineComment'); | ||||
| } | } | ||||
| $this->oldComments = $old_comments; | $this->oldComments = $old_comments; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| protected function getOldComments() { | protected function getOldComments() { | ||||
| return $this->oldComments; | return $this->oldComments; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 482 Lines • Show Last 20 Lines | |||||