SW/panel_manager/includes/room_dto.php
2021-04-08 18:00:08 +02:00

37 lines
1.1 KiB
PHP

<?php
include_once('room_dto_interface.php');
class RoomDTO implements RoomsDTO {
//Attributes:
private $_id; //Room Id.
private $_idcinema; //Cinema Id
private $_numCol; //Num columns.
private $_numRows; //Num rows.
//Constructor:
function __construct($id, $idcinema, $numCol, $numRows){
$this->_id = $id;
$this->_idcinema = $idcinema;
$this->_numCol = $numCol;
$this->_numRows = $numRows;
}
//Methods:
//Getters && Setters:
public function setId($id){ $this->_id = $id; }
public function getId(){ return $this->_id; }
public function setIdcinema($idcinema){ $this->_idcinema = $idcinema; }
public function getIdcinema(){ return $this->_idcinema; }
public function setNumCol($numCol){ $this->_numCol = $numCol; }
public function getNumCol(){ return $this->_numCol; }
public function setNumRows($numRows){ $this->_numRows = $numRows; }
public function getNumRows(){ return $this->_numRows; }
}
?>