Changeset View
Changeset View
Standalone View
Standalone View
src/hardpoint/ArcanistHardpointObject.php
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | return $this->getHardpointList()->hasAttachedHardpoint( | ||||
$hardpoint); | $hardpoint); | ||||
} | } | ||||
protected function newHardpoints() { | protected function newHardpoints() { | ||||
return array(); | return array(); | ||||
} | } | ||||
final protected function newHardpoint($hardpoint_key) { | final protected function newHardpoint($hardpoint_key) { | ||||
return id(new ArcanistScalarHardpoint()) | return (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 (new ArcanistVectorHardpoint()) | ||||
->setHardpointKey($hardpoint_key); | ->setHardpointKey($hardpoint_key); | ||||
} | } | ||||
final protected function newTemplateHardpoint( | final protected function newTemplateHardpoint( | ||||
$hardpoint_key, | $hardpoint_key, | ||||
ArcanistHardpoint $template) { | ArcanistHardpoint $template) { | ||||
return id(clone $template) | return id(clone $template) | ||||
Show All 28 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