Basics properties, getters and setters
This commit is contained in:
parent
69c7020abf
commit
f6c07dfa85
|
@ -21,7 +21,7 @@ class Categorie
|
|||
}
|
||||
|
||||
/**
|
||||
* @param integer $id
|
||||
* @param integer|null $id
|
||||
* @return Categorie
|
||||
*/
|
||||
public function setId($id)
|
||||
|
|
|
@ -26,7 +26,7 @@ class Format
|
|||
}
|
||||
|
||||
/**
|
||||
* @param integer $id
|
||||
* @param integer|null $id
|
||||
* @return Format
|
||||
*/
|
||||
public function setId($id)
|
||||
|
|
|
@ -31,7 +31,7 @@ class Pays
|
|||
}
|
||||
|
||||
/**
|
||||
* @param integer $id
|
||||
* @param integer|null $id
|
||||
* @return Pays
|
||||
*/
|
||||
public function setId($id)
|
||||
|
|
|
@ -33,7 +33,7 @@ class Personne
|
|||
}
|
||||
|
||||
/**
|
||||
* @param integer $id
|
||||
* @param integer|null $id
|
||||
* @return Personne
|
||||
*/
|
||||
public function setId($id)
|
||||
|
|
|
@ -0,0 +1,172 @@
|
|||
<?php
|
||||
|
||||
class Video
|
||||
{
|
||||
/**
|
||||
* @var integer $id Identifiant de la vidéo
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/**
|
||||
* @var string $titre Titre de la vidéo
|
||||
*/
|
||||
protected $titre;
|
||||
|
||||
/**
|
||||
* @var string $duree Durée de la vidéo en secondes
|
||||
*/
|
||||
protected $duree;
|
||||
|
||||
/**
|
||||
* @var string $nom Fichier vidéo
|
||||
*/
|
||||
protected $fichier;
|
||||
|
||||
/**
|
||||
* @var string $nom Image de la vidéo
|
||||
*/
|
||||
protected $image;
|
||||
|
||||
/**
|
||||
* @var string $synopsis Synopsis de la vidéo
|
||||
*/
|
||||
protected $synopsis;
|
||||
|
||||
/**
|
||||
* @var string $annee Année de la vidéo
|
||||
*/
|
||||
protected $annee;
|
||||
|
||||
/**
|
||||
* @param integer|null $id
|
||||
* @return Pays
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = (int) $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer|null
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $titre
|
||||
* @return Video
|
||||
*/
|
||||
public function setTitre($titre)
|
||||
{
|
||||
$this->titre = (string) $titre;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getTitre()
|
||||
{
|
||||
return $this->titre;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param integer $duree
|
||||
* @return Video
|
||||
*/
|
||||
public function setDuree($duree)
|
||||
{
|
||||
$this->duree = (int) $duree;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer|null
|
||||
*/
|
||||
public function getDuree()
|
||||
{
|
||||
return $this->duree;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $fichier
|
||||
* @return Video
|
||||
*/
|
||||
public function setFichier($fichier)
|
||||
{
|
||||
$this->fichier = (string) $fichier;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFichier()
|
||||
{
|
||||
return $this->fichier;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $image
|
||||
* @return Video
|
||||
*/
|
||||
public function setImage($image)
|
||||
{
|
||||
$this->image = (string) $image;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getImage()
|
||||
{
|
||||
return $this->image;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $synopsis
|
||||
* @return Video
|
||||
*/
|
||||
public function setSynopsis($synopsis)
|
||||
{
|
||||
$this->synopsis = (string) $synopsis;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSynopsis()
|
||||
{
|
||||
return $this->synopsis;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param integer $annee
|
||||
* @return Video
|
||||
*/
|
||||
public function setAnnee($annee)
|
||||
{
|
||||
$this->annee = (int) $annee;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer|null
|
||||
*/
|
||||
public function getAnnee()
|
||||
{
|
||||
return $this->annee;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue