<?phpnamespace App\Entity;use App\Repository\FileRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;/** * @ORM\Entity(repositoryClass=FileRepository::class) */class File{ /** * Hook timestampable behavior * updates createdAt, updatedAt fields */ use TimestampableEntity; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="integer") */ private $type; /** * @ORM\ManyToOne(targetEntity=FenceElementDictionary::class, inversedBy="files") */ private $fenceElement; /** * @ORM\ManyToOne(targetEntity=FenceOffer::class, inversedBy="files") */ private $fenceOffer; /** * @ORM\ManyToOne(targetEntity=FenceFace::class, inversedBy="files") */ private $fenceFace; /** * @ORM\Column(type="boolean") */ private $isPublic; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getType(): ?int { return $this->type; } public function setType(int $type): self { $this->type = $type; return $this; } public function getFenceElement(): ?FenceElementDictionary { return $this->fenceElement; } public function setFenceElement(?FenceElementDictionary $fenceElement): self { $this->fenceElement = $fenceElement; return $this; } public function getFenceOffer(): ?FenceOffer { return $this->fenceOffer; } public function setFenceOffer(?FenceOffer $fenceOffer): self { $this->fenceOffer = $fenceOffer; return $this; } public function getFenceFace(): ?FenceFace { return $this->fenceFace; } public function setFenceFace(?FenceFace $fenceFace): self { $this->fenceFace = $fenceFace; return $this; } public function getIsPublic(): ?bool { return $this->isPublic; } public function setIsPublic(bool $isPublic): self { $this->isPublic = $isPublic; return $this; }}