2021-05-06 07:32:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Film{
|
|
|
|
|
|
|
|
//Attributes:
|
|
|
|
private $_id; //Film ID.
|
|
|
|
private $_tittle; //Film tittle.
|
|
|
|
private $_duration; //Film duration.
|
|
|
|
private $_language; //Film language.
|
|
|
|
private $_description; //Film description.
|
2021-05-13 20:06:05 +02:00
|
|
|
private $_img;
|
2021-05-06 07:32:24 +02:00
|
|
|
|
|
|
|
//Constructor:
|
2021-05-13 20:06:05 +02:00
|
|
|
function __construct($id, $tittle, $duration, $language, $description, $img){
|
2021-05-06 07:32:24 +02:00
|
|
|
$this->_id = $id;
|
|
|
|
$this->_tittle = $tittle;
|
|
|
|
$this->_duration = $duration;
|
|
|
|
$this->_language = $language;
|
|
|
|
$this->_description = $description;
|
2021-05-13 20:06:05 +02:00
|
|
|
$this->_img = $img;
|
2021-05-06 07:32:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//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;}
|
|
|
|
public function setDescription($description){ $this->_description = $description;}
|
|
|
|
public function getDescription(){return $this->_description;}
|
2021-05-13 20:06:05 +02:00
|
|
|
public function setImg($img){ $this->_img = $img;}
|
|
|
|
public function getImg(){return $this->_img;}
|
2021-05-06 07:32:24 +02:00
|
|
|
}
|
2021-04-30 20:49:21 +02:00
|
|
|
?>
|