$val){ if ($val !== null) $data[$key] = $val; } if(sizeof($data) < 1){ return null; } return $data; } /** * @return mixed */ public function getId() { return $this->id; } /** * @param mixed $id */ public function setId($id) { $this->id = $id; } /** * @return mixed */ public function getName() { return $this->name; } /** * @param mixed $name */ public function setName($name) { $this->name = $name; } /** * @return mixed */ public function getRegisterNo() { return $this->registerNo; } /** * @param mixed $registerNo */ public function setRegisterNo($registerNo) { $this->registerNo = $registerNo; } /** * @return mixed */ public function getStatus() { return $this->status; } /** * @param mixed $status */ public function setStatus($status) { $this->status = $status; } }