Changeset View
Changeset View
Standalone View
Standalone View
src/hardpoint/ArcanistHardpointObject.php
<?php | <?php | ||||
abstract class ArcanistHardpointObject | abstract class ArcanistHardpointObject | ||||
extends Phobject { | extends Phobject { | ||||
private $hardpointList; | private $hardpointList; | ||||
public function __clone() { | |||||
if ($this->hardpointList) { | |||||
$this->hardpointList = clone $this->hardpointList; | |||||
} | |||||
} | |||||
final public function getHardpoint($hardpoint) { | final public function getHardpoint($hardpoint) { | ||||
return $this->getHardpointList()->getHardpoint( | return $this->getHardpointList()->getHardpoint( | ||||
$this, | $this, | ||||
$hardpoint); | $hardpoint); | ||||
} | } | ||||
final public function attachHardpoint($hardpoint, $value) { | final public function attachHardpoint($hardpoint, $value) { | ||||
$this->getHardpointList()->attachHardpoint( | $this->getHardpointList()->attachHardpoint( | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |