Update dto and dto_interfacce

This commit is contained in:
Daniel Muñoz Garcia 2021-04-11 09:16:07 +02:00 committed by GitHub
parent 16d921f1a1
commit d04592392d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 7 deletions

View File

@ -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;}
}
?>

View File

@ -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();
}
?>