$val){ if ($val !== null) $data[$key] = $val; } if(sizeof($data) < 1){ return null; } return $data; } /** * @return mixed */ public function getName() { return $this->name; } /** * @param mixed $name */ public function setName($name) { $this->name = $name; } /** * @return mixed */ public function getContact() { return $this->contact; } /** * @param mixed $contact */ public function setContact($contact) { $this->contact = $contact; } /** * @return mixed */ public function getContactType() { return $this->contactType; } /** * @param mixed $contactType */ public function setContactType($contactType) { $this->contactType = $contactType; } }