src/Entity/System/SubscriptionGroup.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Table(name="subscription_groups")
  6.  *
  7.  * @ORM\Entity(repositoryClass="App\Repository\System\SubscriptionGroupRepository")
  8.  */
  9. class SubscriptionGroup
  10. {
  11.     public const SUBSCRIPTION_GROUP_ID 1;
  12.     public const PRODUCT_GROUP_ID 2;
  13.     public const SERVICE_GROUP_ID 3;
  14.     public const COURSE_GROUP_ID 4;
  15.     public const REGISTRATION_GROUP_ID 5;
  16.     /**
  17.      * @var int
  18.      *
  19.      * @ORM\Id
  20.      *
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      *
  23.      * @ORM\Column(type="integer", name="id_group")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(type="string", length=15)
  30.      */
  31.     private $name;
  32.     public function getId(): int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function setId(int $id): void
  37.     {
  38.         $this->id $id;
  39.     }
  40.     public function getName(): string
  41.     {
  42.         return $this->name;
  43.     }
  44.     public function setName(string $name): void
  45.     {
  46.         $this->name $name;
  47.     }
  48. }