parent
dbfc6bcbd1
commit
cfe515bdaf
@ -1,39 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
class CommentaryEntity {
|
|
||||||
|
|
||||||
private int $id_comment;
|
|
||||||
private string $comment;
|
|
||||||
private string $date;
|
|
||||||
|
|
||||||
|
|
||||||
public function __construct(int $id_comment, string $comment, string $date) {
|
|
||||||
$this->id_comment = $id_comment;
|
|
||||||
$this->comment = $comment;
|
|
||||||
$this->date = $date;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getIdComment(): int {
|
|
||||||
return $this->id_comment;
|
|
||||||
}
|
|
||||||
public function getComment(): string {
|
|
||||||
return $this->comment;
|
|
||||||
}
|
|
||||||
public function getDate(): string {
|
|
||||||
return $this->date;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setIdComment(int $id_comment): void {
|
|
||||||
$this->id_comment = $id_comment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setComment(string $comment): void {
|
|
||||||
$this->comment = $comment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setDate(string $date): void {
|
|
||||||
$this->date = $date;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in new issue