public function addPhone($phone) { if (!$this->getPhones()) { return $this->setPhones(array($phone)); } else { return $this->setPhones(array_merge($this->getPhones(), array($phone))); } }