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/src/Entity/CommentaryEntity.php

89 lines
1.5 KiB

<?php
namespace Entity;
class CommentaryEntity {
private int $id_comment;
private string $comment;
private string $date;
private string $user;
/**
* @param int $id_comment
* @param string $comment
* @param string $date
*/
public function __construct(int $id_comment, string $comment, string $date)
{
$this->id_comment = $id_comment;
$this->comment = $comment;
$this->date = $date;
}
/**
* @return int
*/
public function getIdComment(): int
{
return $this->id_comment;
}
/**
* @param int $id_comment
*/
public function setIdComment(int $id_comment): void
{
$this->id_comment = $id_comment;
}
/**
* @return string
*/
public function getComment(): string
{
return $this->comment;
}
/**
* @param string $comment
*/
public function setComment(string $comment): void
{
$this->comment = $comment;
}
/**
* @return string
*/
public function getDate(): string
{
return $this->date;
}
/**
* @param string $date
*/
public function setDate(string $date): void
{
$this->date = $date;
}
/**
* @return string $user
*/
public function getUser(): string
{
return $this->user;
}
/**
* @param string $user
*/
public function setUser(int $user): void
{
$this->user = $user;
}
}