. */ require_once(FILESYSTEMROOTPATH."include/model/AbstractMySQL.php"); class NumberOfVotes extends AbstractMySQL { private $id; private $agora_id; private $bodyCode; private $numberOfVotes; /** * Constructor */ public function __construct($data) { if( is_array($data) ) { $this->id = $data['id']; $this->agora_id = $data['agora_id']; $this->bodyCode = $data['bodyCode']; $this->numberOfVotes = $data['numberOfVotes']; } else { $this->id = ''; $this->agora_id = ''; $this->bodyCode = ''; $this->numberOfVotes = ''; } } public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } public function getAgora_id() { return $this->agora_id; } public function setAgora_id($agora_id) { $this->agora_id = $agora_id; } public function getBodycode() { return $this->bodyCode; } public function setBodycode($bodyCode) { $this->bodyCode = $bodyCode; } public function getNumberOfVotes() { return $this->numberOfVotes; } public function setNumberOfVotes($numberOfVotes) { $this->numberOfVotes = $numberOfVotes; } } ?>