public function testPhone() { $phone = 911; $this->assertNull($this->unit->getPhone()); $this->unit->setPhone($phone); $this->assertEquals($phone, $this->unit->getPhone()); }
/** * Gets a list of all phone numbers available for the given BusinessUnit object * * @param BusinessUnit $object * * @return array of [phone number, phone owner] */ public function getPhoneNumbers($object) { $result = []; $phone = $object->getPhone(); if (!empty($phone)) { $result[] = [$phone, $object]; } return $result; }