<?phpnamespace App\Entity;use App\Repository\PhotoRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Entity(repositoryClass: PhotoRepository::class)]class Photo{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $title = null; #[ORM\Column(length: 255, nullable: true)] private ?string $subtitle = null; #[ORM\Column(length: 255)] private ?string $photo = null; #[Gedmo\Timestampable(on: 'create')] #[ORM\Column(type: 'datetime')] private $created_at; #[Gedmo\Timestampable(on: 'update')] #[ORM\Column(type: 'datetime')] private $updated_at; #[ORM\Column(type: 'integer')] private $created_by; #[ORM\Column(type: 'integer')] private $updated_by; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): self { $this->title = $title; return $this; } public function getSubtitle(): ?string { return $this->subtitle; } public function setSubtitle(?string $subtitle): self { $this->subtitle = $subtitle; return $this; } public function getPhoto(): ?string { return $this->photo; } public function setPhoto(string $photo): self { $this->photo = $photo; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->created_at; } public function setCreatedAt(\DateTimeInterface $created_at): self { $this->created_at = $created_at; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updated_at; } public function setUpdatedAt(\DateTimeInterface $updated_at): self { $this->updated_at = $updated_at; return $this; } public function getCreatedBy(): ?int { return $this->created_by; } public function setCreatedBy(int $created_by): self { $this->created_by = $created_by; return $this; } public function getUpdatedBy(): ?int { return $this->updated_by; } public function setUpdatedBy(int $updated_by): self { $this->updated_by = $updated_by; return $this; }}