Changeset View
Changeset View
Standalone View
Standalone View
src/land/ArcanistLandCommit.php
Show All 31 Lines | final class ArcanistLandCommit | ||||
} | } | ||||
public function getSummary() { | public function getSummary() { | ||||
return $this->summary; | return $this->summary; | ||||
} | } | ||||
public function getDisplaySummary() { | public function getDisplaySummary() { | ||||
if ($this->displaySummary === null) { | if ($this->displaySummary === null) { | ||||
$this->displaySummary = id(new PhutilUTF8StringTruncator()) | $this->displaySummary = (new PhutilUTF8StringTruncator()) | ||||
->setMaximumGlyphs(64) | ->setMaximumGlyphs(64) | ||||
->truncateString($this->getSummary()); | ->truncateString($this->getSummary()); | ||||
} | } | ||||
return $this->displaySummary; | return $this->displaySummary; | ||||
} | } | ||||
public function setParents(array $parents) { | public function setParents(array $parents) { | ||||
$this->parents = $parents; | $this->parents = $parents; | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0