You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.0 KiB
58 lines
1.0 KiB
1 year ago
|
<?php
|
||
|
|
||
|
class Article
|
||
|
{
|
||
|
/**
|
||
|
* @var int Identifiant
|
||
|
*/
|
||
|
private int $id;
|
||
|
|
||
|
/**
|
||
|
* @var Alumni Auteur
|
||
|
*/
|
||
|
private Alumni $auteur;
|
||
|
|
||
|
/**
|
||
|
* @var string Sous titre de l'article
|
||
|
*/
|
||
|
private string $sousTitre;
|
||
|
|
||
|
/**
|
||
|
* @var string Description de l'article
|
||
|
*/
|
||
|
private string $description;
|
||
|
|
||
|
/**
|
||
|
* @param int $id
|
||
|
* @param Alumni $auteur
|
||
|
* @param string $sousTitre
|
||
|
* @param string $description
|
||
|
*/
|
||
|
public function __construct(int $id, Alumni $auteur, string $sousTitre, string $description)
|
||
|
{
|
||
|
$this->id = $id;
|
||
|
$this->auteur = $auteur;
|
||
|
$this->sousTitre = $sousTitre;
|
||
|
$this->description = $description;
|
||
|
}
|
||
|
|
||
|
public function getId(): int
|
||
|
{
|
||
|
return $this->id;
|
||
|
}
|
||
|
|
||
|
public function getAuteur(): Alumni
|
||
|
{
|
||
|
return $this->auteur;
|
||
|
}
|
||
|
|
||
|
public function getSousTitre(): string
|
||
|
{
|
||
|
return $this->sousTitre;
|
||
|
}
|
||
|
|
||
|
public function getDescription(): string
|
||
|
{
|
||
|
return $this->description;
|
||
|
}
|
||
|
}
|