diff options
| author | polo <ordipolo@gmx.fr> | 2025-08-26 01:15:33 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-08-26 01:15:33 +0200 |
| commit | f4df3e9b9df3d54ce58796f923da70ff7e566018 (patch) | |
| tree | bbd037099976d0411533823b26a34949d04f286c /src/model/entities/Presentation.php | |
| parent | b02b44d1da7e9ddd7a341d29a597accfbb78155c (diff) | |
| download | cms-f4df3e9b9df3d54ce58796f923da70ff7e566018.tar.gz cms-f4df3e9b9df3d54ce58796f923da70ff7e566018.tar.bz2 cms-f4df3e9b9df3d54ce58796f923da70ff7e566018.zip | |
séparation bloc / mise en page, bloc spécial pour les actus, renommage de classes, fichiers, etc
Diffstat (limited to 'src/model/entities/Presentation.php')
| -rw-r--r-- | src/model/entities/Presentation.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/model/entities/Presentation.php b/src/model/entities/Presentation.php new file mode 100644 index 0000000..73b6a6a --- /dev/null +++ b/src/model/entities/Presentation.php | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | <?php | ||
| 2 | // src/model/entities/Presentation.php | ||
| 3 | |||
| 4 | declare(strict_types=1); | ||
| 5 | |||
| 6 | namespace App\Entity; | ||
| 7 | |||
| 8 | use Doctrine\ORM\Mapping as ORM; | ||
| 9 | |||
| 10 | #[ORM\Entity] | ||
| 11 | #[ORM\Table(name: TABLE_PREFIX . "presentation")] | ||
| 12 | class Presentation | ||
| 13 | { | ||
| 14 | #[ORM\Id] | ||
| 15 | #[ORM\GeneratedValue] | ||
| 16 | #[ORM\Column(type: "integer")] | ||
| 17 | private int $id_presentation; | ||
| 18 | |||
| 19 | #[ORM\Column(type: "string", length: 255)] | ||
| 20 | private string $name_presentation; | ||
| 21 | |||
| 22 | public function __construct(string $name) | ||
| 23 | { | ||
| 24 | $this->name_presentation = $name; | ||
| 25 | } | ||
| 26 | |||
| 27 | public function getName(): string | ||
| 28 | { | ||
| 29 | return $this->name_presentation; | ||
| 30 | } | ||
| 31 | } \ No newline at end of file | ||
