SW/assets/php/includes/promotion.php

40 lines
1.5 KiB
PHP
Raw Normal View History

2021-05-26 09:03:02 +02:00
<?php
class Promotion{
//Attributes:
private $_id; //Promotion ID.
private $_tittle; //Promotions name.
private $_description; //Promotion description.
private $_code; //Promotion code.
private $_active; //Promotion is active?
2021-05-26 11:47:10 +02:00
private $_img;
2021-05-26 09:03:02 +02:00
//Constructor:
2021-05-26 11:47:10 +02:00
function __construct($id, $tittle, $description, $code, $active, $img){
2021-05-26 09:03:02 +02:00
$this->_id = $id;
$this->_tittle = $tittle;
$this->_description = $description;
$this->_code = $code;
$this->_active = $active;
2021-05-26 11:47:10 +02:00
$this->_img= $img;
2021-05-26 09:03:02 +02:00
}
//Methods:
//Getters && Setters:
public function setId($id){ $this->_id = $id; }
public function getId(){ return $this->_id; }
public function setTittle($tittle){ $this->_tittle = $tittle; }
public function getTittle(){ return $this->_tittle; }
public function setDescription($description){ $this->_description = $description;}
public function getDescription(){return $this->_description;}
public function setCode($code){ $this->_code = $code;}
public function getCode(){return $this->_code;}
public function setActive($active){ $this->_active = $active;}
public function getActive(){return $this->_active;}
2021-05-26 11:47:10 +02:00
public function setImg($img){ $this->_img = $img;}
public function getImg(){return $this->_img;}
2021-05-26 09:03:02 +02:00
}
?>