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.
WF-Website/models/commentaryEntity.php

39 lines
842 B

<?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;
}
}