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 (clone $template) | ||||
->setHardpointKey($hardpoint_key); | ->setHardpointKey($hardpoint_key); | ||||
Lint: PHP Syntax Error!: This file contains a syntax error: XHPAST Parse Error: syntax error, unexpected… | |||||
} | } | ||||
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, | ||||
Show All 19 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
This file contains a syntax error: XHPAST Parse Error: syntax error, unexpected T_OBJECT_OPERATOR on line 78