src/Entity/Partenaires.php line 13
<?php
namespace App\Entity;
use App\Repository\PartenairesRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
#[ORM\Entity(repositoryClass: PartenairesRepository::class)]
#[Vich\Uploadable]
class Partenaires
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[Vich\UploadableField(mapping: 'partenaires', fileNameProperty: 'imageName', size: 'imageSize',)]
private ?File $imageFile = null;
#[Vich\UploadableField(mapping: 'logos', fileNameProperty: 'imageNames')]
private ?File $imageFiles = null;
#[ORM\Column(nullable: true)]
private ?string $imageName = null;
#[ORM\Column(nullable: true)]
private ?string $imageNames = null;
#[ORM\Column(nullable: true)]
private ?int $imageSize = null;
#[ORM\Column(length: 255)]
private ?string $link = null;
#[ORM\Column(length: 255)]
private ?string $description = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $text = null;
#[ORM\Column]
private ?bool $is_active = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $paragraphe = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $paragraphe_2 = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $paragraphe_3 = null;
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 setImageFile(?File $imageFile = null): void
{
$this->imageFile = $imageFile;
if (null !== $imageFile) {
// It is required that at least one field changes if you are using doctrine
// otherwise the event listeners won't be called and the file is lost
$this->updatedAt = new \DateTimeImmutable();
}
}
public function getImageFile(): ?File
{
return $this->imageFile;
}
public function setImageFiles(?File $imageFiles = null): void
{
$this->imageFiles = $imageFiles;
if (null !== $imageFiles) {
// It is required that at least one field changes if you are using doctrine
// otherwise the event listeners won't be called and the file is lost
$this->updatedAt = new \DateTimeImmutable();
}
}
public function getImageFiles(): ?File
{
return $this->imageFiles;
}
public function setImageNames(?string $imageNames): void
{
$this->imageNames = $imageNames;
}
public function getImageNames(): ?string
{
return $this->imageNames;
}
public function setImageName(?string $imageName): void
{
$this->imageName = $imageName;
}
public function getImageName(): ?string
{
return $this->imageName;
}
public function setImageSize(?int $imageSize): void
{
$this->imageSize = $imageSize;
}
public function getImageSize(): ?int
{
return $this->imageSize;
}
public function getLink(): ?string
{
return $this->link;
}
public function setLink(string $link): self
{
$this->link = $link;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getText(): ?string
{
return $this->text;
}
public function setText(string $text): self
{
$this->text = $text;
return $this;
}
public function isIsActive(): ?bool
{
return $this->is_active;
}
public function setIsActive(bool $is_active): self
{
$this->is_active = $is_active;
return $this;
}
public function getParagraphe(): ?string
{
return $this->paragraphe;
}
public function setParagraphe(?string $paragraphe): self
{
$this->paragraphe = $paragraphe;
return $this;
}
public function getParagraphe2(): ?string
{
return $this->paragraphe_2;
}
public function setParagraphe2(?string $paragraphe_2): self
{
$this->paragraphe_2 = $paragraphe_2;
return $this;
}
public function getParagraphe3(): ?string
{
return $this->paragraphe_3;
}
public function setParagraphe3(?string $paragraphe_3): self
{
$this->paragraphe_3 = $paragraphe_3;
return $this;
}
}