Merge branch 'laura' of https://github.com/Yasder5/projet_php into laura

This commit is contained in:
laura.chevillet 2026-02-24 13:20:42 +01:00
commit c0dd044c57
123 changed files with 2357 additions and 13471 deletions

View file

@ -2,11 +2,11 @@
require_once("mother_entity.php");
/**
* Classe d'un objet Projet
* @author Laura
*/
/**
* Classe d'un objet Projet
* @author Laura
*/
class Image extends Entity{
private int $_id;

View file

@ -7,13 +7,13 @@ require_once("mother_entity.php");
class Project extends Entity{
private int $_id;
private string $_title;
private string $_description;
private string $_thumbnail;
private string $_content;
private ?int $_id = null;
private string $_title = "";
private string $_description = "";
private ?string $_thumbnail = null;
private string $_content = "";
private string $_creation_date;
private string $_status;
private string $_status = "en_attente";
private int $_user;
private int $_category;
private string $_creatorname;
@ -33,7 +33,7 @@ class Project extends Entity{
* Récuperation de l'id du Projet
* @return int l'id du projet
*/
public function getId():int{
public function getId():?int{
return $this->_id;
}
@ -110,7 +110,6 @@ class Project extends Entity{
$this->_content = $content;
}
/**
* Récupération de la date de création
* @param string lang de formatage de la date (par défaut = "fr_FR")
@ -173,7 +172,7 @@ class Project extends Entity{
* Récupération de la catégorie
* @return int id de la catégorie
*/
public function getCategory(){
public function getCategory():?int{
return $this->_category;
}