x = &$x; $this->y = &$y; $this->z = &$z; } public function addToValues($v){ $this->x += $v->x; $this->y += $v->y; $this->z += $v->z; return $this; } }