コード例 #1
0
ファイル: Reference.php プロジェクト: twhiston/twlib
 /**
  * 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;
 }