src/Entity/OurStudent.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OurStudentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. #[ORM\Entity(repositoryClass: OurStudentRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class OurStudent
  9. {
  10.     use \App\Traits\EntityDateTimeAbleTrait;
  11.     const STATUS_ACTIVE = 1;
  12.     const STATUS_INACTIVE = 0;
  13.     const TYPE_ARTICLE = 1;
  14.     const TYPE_VIDEO = 2;
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column(type: 'integer')]
  18.     private $id;
  19.     /**
  20.      * @Gedmo\Translatable
  21.      */
  22.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  23.     private ?string $title = null;
  24.     /**
  25.      * @Gedmo\Translatable
  26.      */
  27.     #[ORM\Column(type: 'text', nullable: true)]
  28.     private ?string $content = null;
  29.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  30.     private ?string $image = null;
  31.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  32.     private ?string $video = null;
  33.     #[ORM\Column(type: 'boolean', nullable: true)]
  34.     private ?bool $status = null;
  35.     #[ORM\Column(type: 'integer', nullable: true)]
  36.     private ?int $type = null;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getTitle(): ?string
  42.     {
  43.         return $this->title;
  44.     }
  45.     public function setTitle(?string $title): self
  46.     {
  47.         $this->title = $title;
  48.         return $this;
  49.     }
  50.     public function getContent(): ?string
  51.     {
  52.         return $this->content;
  53.     }
  54.     public function setContent(?string $content): self
  55.     {
  56.         $this->content = $content;
  57.         return $this;
  58.     }
  59.     public function getImage(): ?string
  60.     {
  61.         return $this->image;
  62.     }
  63.     public function setImage(?string $image): self
  64.     {
  65.         $this->image = $image;
  66.         return $this;
  67.     }
  68.     public function getVideo(): ?string
  69.     {
  70.         return $this->video;
  71.     }
  72.     public function setVideo(?string $video): self
  73.     {
  74.         $this->video = $video;
  75.         return $this;
  76.     }
  77.     public function getStatus(): ?bool
  78.     {
  79.         return $this->status;
  80.     }
  81.     public function setStatus(?bool $status): self
  82.     {
  83.         $this->status = $status;
  84.         return $this;
  85.     }
  86.     public function getType(): ?int
  87.     {
  88.         return $this->type;
  89.     }
  90.     public function setType(?int $type): self
  91.     {
  92.         $this->type = $type;
  93.         return $this;
  94.     }
  95. }