Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.rec-app.app_1716798588
/
htdocs
/
src
/
Entity
/
/srv/data/trash/vhost_www.rec-app.app_1716798588/htdocs/src/Entity/PhoneOption.php
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use App\Repository\PhoneOptionRepository; use Symfony\Component\HttpFoundation\File\File; use Vich\UploaderBundle\Mapping\Annotation as Vich; use Symfony\Component\Serializer\Annotation\Groups; use ApiPlatform\Core\Annotation\ApiResource; /** * @ApiResource( * ) * @ORM\Entity(repositoryClass=PhoneOptionRepository::class) * @Vich\Uploadable */ class PhoneOption { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * @Groups({"phoneModel:read"}) */ private $id; /** * @ORM\Column(type="string", length=255) * * @Groups({"phoneModel:read"}) */ private $name; /** * @Vich\UploadableField(mapping="option_image", fileNameProperty="imageName") * @var File|null */ private $imageFile; /** * @ORM\Column(type="string", length=255, nullable=true) * @Groups({"phoneModel:read"}) */ private $imageName; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; 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 getImageFile(): ?File { return $this->imageFile; } public function setImageFile(?File $imageFile = null): void { $this->imageFile = $imageFile; if (null !== $imageFile) { $this->updatedAt = new \DateTimeImmutable(); } } public function getImageName(): ?string { return $this->imageName; } public function setImageName(?string $imageName): self { $this->imageName = $imageName; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } }