namespace de fait hehe
This commit is contained in:
parent
6c21a5f1cb
commit
0638834933
23 changed files with 131 additions and 81 deletions
53
entities/Authorisation.php
Normal file
53
entities/Authorisation.php
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
namespace Entities;
|
||||
|
||||
|
||||
/**
|
||||
* Classe d'un objet Authorisation
|
||||
* @author Laura
|
||||
*/
|
||||
class Authorisation extends Mother{
|
||||
|
||||
private int $_id;
|
||||
private string $_name = '';
|
||||
|
||||
/**
|
||||
* le constructeur de la table authorisation
|
||||
*/
|
||||
public function __construct(){
|
||||
$this->_prefix = 'authorisation_';
|
||||
}
|
||||
|
||||
/**
|
||||
* Récuperation de l'id du statut d'un utilisateur
|
||||
* @return int l'id du statut
|
||||
*/
|
||||
public function getId():int{
|
||||
return $this->_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mise à jour de l'id du statut d'un utilisateur
|
||||
* @param int le nouvelle id du statut
|
||||
*/
|
||||
public function setId(int $id){
|
||||
$this->_id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Récuperation de l'intitulé du statut d'un utilisateur
|
||||
* @return string l'intitulé du statut
|
||||
*/
|
||||
public function getName():string{
|
||||
return $this->_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mise à jour de l'intitulé du statut d'un utilisateur
|
||||
* @return string le nouvel intitulé du statut
|
||||
*/
|
||||
public function setName(string $name){
|
||||
$this->_name = $name;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue