id; } /** * Set sbas_id * * @param integer $sbasId */ public function setSbasId($sbasId) { $this->sbas_id = $sbasId; } /** * Get sbas_id * * @return integer */ public function getSbasId() { return $this->sbas_id; } /** * Set record_id * * @param integer $recordId */ public function setRecordId($recordId) { $this->record_id = $recordId; } /** * Get record_id * * @return integer */ public function getRecordId() { return $this->record_id; } /** * Set usr_id * * @param integer $usrId */ public function setUsrId($usrId) { $this->usr_id = $usrId; } /** * Get usr_id * * @return integer */ public function getUsrId() { return $this->usr_id; } /** * Set created * * @param datetime $created */ public function setCreated($created) { $this->created = $created; } /** * Get created * * @return datetime */ public function getCreated() { return $this->created; } public function setUser(\User_Adapter $user) { $this->setUsrId($user->get_id()); } public function getUser(Application $app) { if ($this->getUsrId()) { return new \User_Adapter($this->getUsrId(), $app); } } public function getRecord(Application $app) { return new \record_adapter($app, $this->getSbasId(), $this->getRecordId()); } public function setRecord(\record_adapter $record) { $this->setRecordId($record->get_record_id()); $this->setSbasId($record->get_sbas_id()); } }