Add new folder includes
This commit is contained in:
parent
a54662295a
commit
a912e5806e
33
panel_admin/includes/film_dto.php
Normal file
33
panel_admin/includes/film_dto.php
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
include_once('film_dto_interface.php');
|
||||||
|
|
||||||
|
class FilmDTO implements FilmDTO {
|
||||||
|
|
||||||
|
//Attributes:
|
||||||
|
private $_id; //User Id.
|
||||||
|
private $_tittle; //User name.
|
||||||
|
private $_duration; //User email.
|
||||||
|
private $_language; //User password.
|
||||||
|
|
||||||
|
|
||||||
|
//Constructor:
|
||||||
|
function __construct($id, $tittle, $duration, $language){
|
||||||
|
$this->_id = $id;
|
||||||
|
$this->_tittle = $tittle;
|
||||||
|
$this->_duration = $duration;
|
||||||
|
$this->_language = $language;
|
||||||
|
}
|
||||||
|
|
||||||
|
//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 setDuration($duration){$this->_duration = $duration; }
|
||||||
|
public function getDuration() {return $this->_duration;}
|
||||||
|
public function setLanguage($language) {$this->_language = $language; }
|
||||||
|
public function getLanguage(){return $this->_language;}
|
||||||
|
}
|
||||||
|
?>
|
12
panel_admin/includes/film_dto_interface.php
Normal file
12
panel_admin/includes/film_dto_interface.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
interface FilmDTO {
|
||||||
|
public function setId($id);
|
||||||
|
public function getId();
|
||||||
|
public function setTittle($tittle);
|
||||||
|
public function getTittle();
|
||||||
|
public function setDuration($duration);
|
||||||
|
public function getDuration();
|
||||||
|
public function setLanguage($language);
|
||||||
|
public function getLanguage();
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user