src/Entity/Photo.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PhotoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPhotoRepository::class)]
  6. class Photo
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $filename null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $publicurl null;
  16.     /**
  17.      * type:
  18.      *  1 - justificatif de relevĂ© de prix
  19.      *  2 - photo principale du produit
  20.      */
  21.     #[ORM\Column]
  22.     private int $type;
  23.     #[ORM\Column]
  24.     private string $stockage;
  25.     #[ORM\ManyToOne(targetEntityRecord::class, inversedBy'photos')]
  26.     private ?Record $record null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getFilename(): ?string
  32.     {
  33.         return $this->filename;
  34.     }
  35.     public function setFilename(string $filename): static
  36.     {
  37.         $this->filename $filename;
  38.         return $this;
  39.     }
  40.     public function getType(): ?int
  41.     {
  42.         return $this->type;
  43.     }
  44.     public function setType(int $type): static
  45.     {
  46.         $this->type $type;
  47.         return $this;
  48.     }
  49.     public function getRecord(): ?Record
  50.     {
  51.         return $this->record;
  52.     }
  53.     public function setRecord(?Record $record): static
  54.     {
  55.         $this->record $record;
  56.         return $this;
  57.     }
  58.     public function getPublicurl(): ?string
  59.     {
  60.         return $this->publicurl;
  61.     }
  62.     public function setPublicurl(string $publicurl): static
  63.     {
  64.         $this->publicurl $publicurl;
  65.         return $this;
  66.     }
  67.     public function getStockage(): ?string
  68.     {
  69.         return $this->stockage;
  70.     }
  71.     public function setStockage(string $stockage): static
  72.     {
  73.         $this->stockage $stockage;
  74.         return $this;
  75.     }
  76. }