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