Changeset View
Changeset View
Standalone View
Standalone View
src/hardpoint/ArcanistHardpointObject.php
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | return id(new ArcanistScalarHardpoint()) | ||||
| ->setHardpointKey($hardpoint_key); | ->setHardpointKey($hardpoint_key); | ||||
| } | } | ||||
| final protected function newVectorHardpoint($hardpoint_key) { | final protected function newVectorHardpoint($hardpoint_key) { | ||||
| return id(new ArcanistVectorHardpoint()) | return id(new ArcanistVectorHardpoint()) | ||||
| ->setHardpointKey($hardpoint_key); | ->setHardpointKey($hardpoint_key); | ||||
| } | } | ||||
| final protected function newTemplateHardpoint( | |||||
| $hardpoint_key, | |||||
| ArcanistHardpoint $template) { | |||||
| return id(clone $template) | |||||
| ->setHardpointKey($hardpoint_key); | |||||
| } | |||||
| final public function getHardpointList() { | final public function getHardpointList() { | ||||
| if ($this->hardpointList === null) { | if ($this->hardpointList === null) { | ||||
| $list = $this->newHardpointList(); | $list = $this->newHardpointList(); | ||||
| // TODO: Cache the hardpoint list with the class name as a key? If so, | // TODO: Cache the hardpoint list with the class name as a key? If so, | ||||
| // it needs to be purged when the request cache is purged. | // it needs to be purged when the request cache is purged. | ||||
| Show All 17 Lines | |||||