src/Entity/Photo.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PhotoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. #[ORM\Entity(repositoryClassPhotoRepository::class)]
  7. class Photo
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $title null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $subtitle null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $photo null;
  19.     #[Gedmo\Timestampable(on'create')]
  20.     #[ORM\Column(type'datetime')]
  21.     private $created_at;
  22.     #[Gedmo\Timestampable(on'update')]
  23.     #[ORM\Column(type'datetime')]
  24.     private $updated_at;
  25.     #[ORM\Column(type'integer')]
  26.     private $created_by;
  27.     #[ORM\Column(type'integer')]
  28.     private $updated_by;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getTitle(): ?string
  34.     {
  35.         return $this->title;
  36.     }
  37.     public function setTitle(?string $title): self
  38.     {
  39.         $this->title $title;
  40.         return $this;
  41.     }
  42.     public function getSubtitle(): ?string
  43.     {
  44.         return $this->subtitle;
  45.     }
  46.     public function setSubtitle(?string $subtitle): self
  47.     {
  48.         $this->subtitle $subtitle;
  49.         return $this;
  50.     }
  51.     public function getPhoto(): ?string
  52.     {
  53.         return $this->photo;
  54.     }
  55.     public function setPhoto(string $photo): self
  56.     {
  57.         $this->photo $photo;
  58.         return $this;
  59.     }
  60.     public function getCreatedAt(): ?\DateTimeInterface
  61.     {
  62.         return $this->created_at;
  63.     }
  64.     public function setCreatedAt(\DateTimeInterface $created_at): self
  65.     {
  66.         $this->created_at $created_at;
  67.         return $this;
  68.     }
  69.     public function getUpdatedAt(): ?\DateTimeInterface
  70.     {
  71.         return $this->updated_at;
  72.     }
  73.     public function setUpdatedAt(\DateTimeInterface $updated_at): self
  74.     {
  75.         $this->updated_at $updated_at;
  76.         return $this;
  77.     }
  78.     public function getCreatedBy(): ?int
  79.     {
  80.         return $this->created_by;
  81.     }
  82.     public function setCreatedBy(int $created_by): self
  83.     {
  84.         $this->created_by $created_by;
  85.         return $this;
  86.     }
  87.     public function getUpdatedBy(): ?int
  88.     {
  89.         return $this->updated_by;
  90.     }
  91.     public function setUpdatedBy(int $updated_by): self
  92.     {
  93.         $this->updated_by $updated_by;
  94.         return $this;
  95.     }
  96. }