Add functions

This commit is contained in:
Daniel Muñoz Garcia
2021-05-26 11:47:10 +02:00
committed by GitHub
parent 113a6413a8
commit 90f233fca9
3 changed files with 34 additions and 9 deletions

View File

@ -8,14 +8,16 @@
private $_description; //Promotion description.
private $_code; //Promotion code.
private $_active; //Promotion is active?
private $_img;
//Constructor:
function __construct($id, $tittle, $description, $code, $active){
function __construct($id, $tittle, $description, $code, $active, $img){
$this->_id = $id;
$this->_tittle = $tittle;
$this->_description = $description;
$this->_code = $code;
$this->_active = $active;
$this->_img= $img;
}
//Methods:
@ -31,6 +33,8 @@
public function getCode(){return $this->_code;}
public function setActive($active){ $this->_active = $active;}
public function getActive(){return $this->_active;}
public function setImg($img){ $this->_img = $img;}
public function getImg(){return $this->_img;}
}
?>