diff options
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 | ||
