namespace de fait hehe
This commit is contained in:
parent
6c21a5f1cb
commit
0638834933
23 changed files with 131 additions and 81 deletions
|
|
@ -1,11 +1,12 @@
|
|||
<?php
|
||||
require_once("mother_entity.php");
|
||||
namespace Entities;
|
||||
|
||||
|
||||
/**
|
||||
* Classe d'un objet Authorisation
|
||||
* @author Laura
|
||||
*/
|
||||
class Authorisation extends Entity{
|
||||
class Authorisation extends Mother{
|
||||
|
||||
private int $_id;
|
||||
private string $_name = '';
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
require_once("mother_entity.php");
|
||||
namespace Entities;
|
||||
|
||||
/**
|
||||
* Classe d'un objet Category
|
||||
* @author Laura
|
||||
*/
|
||||
|
||||
class Category extends Entity{
|
||||
class Category extends Mother{
|
||||
|
||||
private ?int $_id = null;
|
||||
protected string $_name = '';
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
require_once("mother_entity.php");
|
||||
namespace Entities;
|
||||
|
||||
|
||||
/**
|
||||
* Classe d'un objet Projet
|
||||
* @author Laura
|
||||
*/
|
||||
class Image extends Entity{
|
||||
class Image extends Mother{
|
||||
|
||||
private int $_id;
|
||||
private string $_name = '';
|
||||
|
|
@ -1,11 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Entities;
|
||||
|
||||
/**
|
||||
* Classe d'un Mere de tout objet
|
||||
* @author Yass & Laura
|
||||
*/
|
||||
|
||||
class Entity{
|
||||
class Mother{
|
||||
|
||||
protected string $_prefix = '';
|
||||
|
||||
|
|
@ -1,11 +1,15 @@
|
|||
<?php
|
||||
require_once("mother_entity.php");
|
||||
namespace Entities;
|
||||
|
||||
use \DateTime;
|
||||
use \IntlDateFormatter;
|
||||
|
||||
/**
|
||||
* Classe d'un objet Projet
|
||||
* @author Yass
|
||||
*/
|
||||
|
||||
class Project extends Entity{
|
||||
class Project extends Mother{
|
||||
|
||||
private ?int $_id = null;
|
||||
private string $_title = "";
|
||||
|
|
@ -1,11 +1,12 @@
|
|||
<?php
|
||||
require_once("mother_entity.php");
|
||||
namespace Entities;
|
||||
|
||||
|
||||
/**
|
||||
* Classe d'un objet User
|
||||
* @author Besnik & Laura
|
||||
*/
|
||||
class User extends Entity{
|
||||
class User extends Mother{
|
||||
private int $_id;
|
||||
private string $_name = '';
|
||||
private string $_firstname = '';
|
||||
Loading…
Add table
Add a link
Reference in a new issue