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.
19 lines
410 B
19 lines
410 B
<?php
|
|
|
|
class Message {
|
|
|
|
// Object attributes
|
|
public string $id;
|
|
public string $content;
|
|
public string $idSender;
|
|
public string $dateEnvoie;
|
|
|
|
public function __construct(string $_id, string $_content, string $_idSender, string $_dateEnvoie){
|
|
$this->id=$_id;
|
|
$this->content=$_content;
|
|
$this->idSender=$_idSender;
|
|
$this->dateEnvoie=$_dateEnvoie;
|
|
}
|
|
}
|
|
|
|
?>
|