VeilleTechnoPHP/Article.php
2022-02-23 13:27:48 +01:00

26 lines
522 B
PHP

<?php
class Article {
private String $nom;
private String $desc;
private DateTime $date;
public function __construct(String $n, String $de, DateTime $da) {
$this->nom = $n;
$this->desc = $de;
$this->date = $da;
}
public function getArticleName() : String {
return $this -> nom;
}
public function getArticleDescription() : String {
return $this->desc;
}
public function getArticleDate() : DateTime {
return $this -> date;
}
}