/** * Changes the owner of this address. * * @param int $uid * The new owner of the address. * * @access public * @return UcAddressesAddressBook * The address book the address will belong to; * or NULL if the address was already owned. */ public function setOwner($uid) { // The owner of this address may only be changed if it doesn't belong to // anyone yet. if ($this->isOwned()) { // Changing the owner not allowed. return; } // Setting the owner goes via the address book. return $this->addressBook->setAddressOwner($this, $uid); }