52 lines
No EOL
1 KiB
PHP
52 lines
No EOL
1 KiB
PHP
<?php
|
|
require_once("mother_entity.php");
|
|
|
|
/**
|
|
* Classe d'un objet Authorisation
|
|
* @author Laura
|
|
*/
|
|
class Authorisation extends Entity{
|
|
|
|
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;
|
|
}
|
|
|
|
} |