2021-04-08 18:00:08 +02:00
|
|
|
<?php
|
|
|
|
include_once('session_dto_interface.php');
|
|
|
|
|
|
|
|
class SessionDTO implements SessionsDTO {
|
|
|
|
|
|
|
|
//Attributes:
|
2021-04-15 20:53:01 +02:00
|
|
|
private $_id;
|
|
|
|
private $_idfilm;
|
|
|
|
private $_idhall;
|
2021-04-10 20:54:56 +02:00
|
|
|
private $_idcinema;
|
2021-04-15 20:53:01 +02:00
|
|
|
private $_date;
|
|
|
|
private $_startTime;
|
|
|
|
private $_seatPrice;
|
|
|
|
private $_format;
|
2021-04-08 18:00:08 +02:00
|
|
|
|
|
|
|
//Constructor:
|
2021-04-10 20:54:56 +02:00
|
|
|
function __construct($id, $idfilm, $idhall, $idcinema, $date, $startTime, $seatPrice, $format){
|
2021-04-08 18:00:08 +02:00
|
|
|
$this->_id = $id;
|
|
|
|
$this->_idfilm = $idfilm;
|
|
|
|
$this->_idhall = $idhall;
|
2021-04-10 20:54:56 +02:00
|
|
|
$this->_idcinema = $idcinema;
|
2021-04-08 18:00:08 +02:00
|
|
|
$this->_date = $date;
|
|
|
|
$this->_startTime = $startTime;
|
|
|
|
$this->_seatPrice = $seatPrice;
|
|
|
|
$this->_format = $format;
|
|
|
|
}
|
|
|
|
|
|
|
|
//Methods:
|
|
|
|
|
|
|
|
//Getters && Setters:
|
|
|
|
public function setId($id){ $this->_id = $id; }
|
|
|
|
public function getId(){ return $this->_id; }
|
|
|
|
|
|
|
|
public function setIdfilm($idfilm){ $this->_idfilm = $idfilm; }
|
|
|
|
public function getIdfilm(){ return $this->_idfilm; }
|
|
|
|
|
2021-04-10 20:54:56 +02:00
|
|
|
public function setIdhall($idhall){ $this->_idhall = $idhall; }
|
2021-04-08 18:00:08 +02:00
|
|
|
public function getIdhall(){ return $this->_idhall; }
|
2021-04-10 20:54:56 +02:00
|
|
|
|
|
|
|
public function setIdcinema($cinema){ $this->_idcinema = $idcinema; }
|
|
|
|
public function getIdcinema(){ return $this->_idcinema; }
|
2021-04-08 18:00:08 +02:00
|
|
|
|
|
|
|
public function setDate($date){ $this->_date = $date; }
|
|
|
|
public function getDate(){ return $this->_date; }
|
|
|
|
|
|
|
|
public function setStartTime($startTime){ $this->_startTime = $startTime; }
|
|
|
|
public function getStartTime(){ return $this->_startTime; }
|
|
|
|
|
|
|
|
public function setSeatPrice($seatPrice){ $this->_seatPrice = $seatPrice; }
|
|
|
|
public function getSeatPrice(){ return $this->_seatPrice; }
|
|
|
|
|
|
|
|
public function setFormat($format){ $this->_format = $format; }
|
|
|
|
public function getFormat(){ return $this->_format; }
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|