<?php
namespace App\Entity;
use App\Repository\CarouselRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CarouselRepository::class)]
class Carousel
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $description = null;
#[ORM\Column(length: 255)]
private ?string $status = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $created = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $updated = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?File $file = null;
#[ORM\Column(nullable: true)]
private ?int $createdById = null;
#[ORM\Column(nullable: true)]
private ?int $updatedById = null;
public function getId(): ?int
{
return $this->id;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): static
{
$this->description = $description;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(string $status): static
{
$this->status = $status;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(\DateTimeInterface $created): static
{
$this->created = $created;
return $this;
}
public function getUpdated(): ?\DateTimeInterface
{
return $this->updated;
}
public function setUpdated(\DateTimeInterface $updated): static
{
$this->updated = $updated;
return $this;
}
public function getFile(): ?File
{
return $this->file;
}
public function setFile(?File $file): static
{
$this->file = $file;
return $this;
}
public function getCreatedById(): ?int
{
return $this->createdById;
}
public function setCreatedById(?int $createdById): static
{
$this->createdById = $createdById;
return $this;
}
public function getUpdatedById(): ?int
{
return $this->updatedById;
}
public function setUpdatedById(?int $updatedById): static
{
$this->updatedById = $updatedById;
return $this;
}
}