/** * Swap this reference with another * @param \twhiston\twLib\Reference\Reference $point * @return mixed|null */ public function &swap(Reference &$point) { $tmp =& $this->point; $pr =& $point->getRef(); $this->reset($pr); $point->reset($tmp); return $tmp; }