Update dto and dto_interfacce
This commit is contained in:
parent
16d921f1a1
commit
d04592392d
@ -1,21 +1,23 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('film_dto_interface.php');
|
include_once('film_dto_interface.php');
|
||||||
|
|
||||||
class FilmDTO implements FilmDTOs {
|
class Film_DTO implements FilmDTO {
|
||||||
|
|
||||||
//Attributes:
|
//Attributes:
|
||||||
private $_id; //User Id.
|
private $_id; //Film ID.
|
||||||
private $_tittle; //User name.
|
private $_tittle; //Film tittle.
|
||||||
private $_duration; //User email.
|
private $_duration; //Film duration.
|
||||||
private $_language; //User password.
|
private $_language; //Film language.
|
||||||
|
private $_description; //Film description.
|
||||||
|
|
||||||
|
|
||||||
//Constructor:
|
//Constructor:
|
||||||
function __construct($id, $tittle, $duration, $language){
|
function __construct($id, $tittle, $duration, $language, $description){
|
||||||
$this->_id = $id;
|
$this->_id = $id;
|
||||||
$this->_tittle = $tittle;
|
$this->_tittle = $tittle;
|
||||||
$this->_duration = $duration;
|
$this->_duration = $duration;
|
||||||
$this->_language = $language;
|
$this->_language = $language;
|
||||||
|
$this->_description = $description;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Methods:
|
//Methods:
|
||||||
@ -29,5 +31,7 @@
|
|||||||
public function getDuration() {return $this->_duration;}
|
public function getDuration() {return $this->_duration;}
|
||||||
public function setLanguage($language) {$this->_language = $language; }
|
public function setLanguage($language) {$this->_language = $language; }
|
||||||
public function getLanguage(){return $this->_language;}
|
public function getLanguage(){return $this->_language;}
|
||||||
|
public function setDescription($description){ $this->_description = $description;}
|
||||||
|
public function getDescription(){return $this->_description;}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
interface FilmDTOs {
|
interface FilmDTO {
|
||||||
public function setId($id);
|
public function setId($id);
|
||||||
public function getId();
|
public function getId();
|
||||||
public function setTittle($tittle);
|
public function setTittle($tittle);
|
||||||
@ -8,5 +8,7 @@
|
|||||||
public function getDuration();
|
public function getDuration();
|
||||||
public function setLanguage($language);
|
public function setLanguage($language);
|
||||||
public function getLanguage();
|
public function getLanguage();
|
||||||
|
public function setDescription($description);
|
||||||
|
public function getDescription();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user