blob: 73b6a6afdd6fc16c6338734479b557bdacc8cbaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
// src/model/entities/Presentation.php
declare(strict_types=1);
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: TABLE_PREFIX . "presentation")]
class Presentation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: "integer")]
private int $id_presentation;
#[ORM\Column(type: "string", length: 255)]
private string $name_presentation;
public function __construct(string $name)
{
$this->name_presentation = $name;
}
public function getName(): string
{
return $this->name_presentation;
}
}
|