src/Entity/Embarcation.php line 13
<?php
namespace App\Entity;
use App\Repository\EmbarcationRepository;
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: EmbarcationRepository::class)]
#[Vich\Uploadable]
class Embarcation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[Vich\UploadableField(mapping: 'embarcations', fileNameProperty: 'imageName')]
private ?File $imageFile = null;
#[ORM\Column(nullable: true)]
private ?string $imageName = null;
#[ORM\Column]
private ?int $people = null;
#[ORM\Column]
private ?int $motor = null;
#[ORM\Column(length: 255)]
private ?string $link = null;
#[ORM\Column]
private ?float $width = null;
#[ORM\Column]
private ?float $height = null;
#[ORM\Column(nullable: true)]
private ?bool $permis = null;
#[ORM\Column]
private ?bool $is_active = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $description = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $comment = 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 setImageName(?string $imageName): void
{
$this->imageName = $imageName;
}
public function getImageName(): ?string
{
return $this->imageName;
}
public function getPeople(): ?int
{
return $this->people;
}
public function setPeople(int $people): self
{
$this->people = $people;
return $this;
}
public function getMotor(): ?int
{
return $this->motor;
}
public function setMotor(int $motor): self
{
$this->motor = $motor;
return $this;
}
public function getLink(): ?string
{
return $this->link;
}
public function setLink(string $link): self
{
$this->link = $link;
return $this;
}
public function getWidth(): ?float
{
return $this->width;
}
public function setWidth(float $width): self
{
$this->width = $width;
return $this;
}
public function getHeight(): ?float
{
return $this->height;
}
public function setHeight(float $height): self
{
$this->height = $height;
return $this;
}
public function isPermis(): ?bool
{
return $this->permis;
}
public function setPermis(?bool $permis): self
{
$this->permis = $permis;
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 getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
}