Skip to content
Snippets Groups Projects
Select Git revision
  • 1f1abc60f94ddcf9a839f6c2fc6db2fbc07e0bad
  • main default protected
  • fill-database
  • Tom
  • Lucas
5 results

Panier.php

Blame
  • Panier.php 1.93 KiB
    <?php
    
    namespace App\Entity;
    
    use App\Repository\PanierRepository;
    use Doctrine\DBAL\Types\Types;
    use Doctrine\ORM\Mapping as ORM;
    
    #[ORM\Entity(repositoryClass: PanierRepository::class)]
    class Panier
    {
        #[ORM\Id]
        #[ORM\GeneratedValue]
        #[ORM\Column]
        private ?int $id = null;
    
        #[ORM\Column(length: 255)]
        private ?string $nom = null;
    
        #[ORM\Column(type: Types::BLOB, nullable: true)]
        private $photo = null;
    
        #[ORM\Column(type: Types::TEXT, nullable: true)]
        private ?string $description = null;
    
        #[ORM\ManyToOne(inversedBy: 'paniers')]
        #[ORM\JoinColumn(nullable: false)]
        private ?Unite $unite_id = null;
    
        #[ORM\ManyToOne(inversedBy: 'paniers')]
        #[ORM\JoinColumn(nullable: false)]
        private ?FrequenceType $frequence_type_id = null;
    
        public function getId(): ?int
        {
            return $this->id;
        }
    
        public function getNom(): ?string
        {
            return $this->nom;
        }
    
        public function setNom(string $nom): static
        {
            $this->nom = $nom;
    
            return $this;
        }
    
        public function getPhoto()
        {
            return $this->photo;
        }
    
        public function setPhoto($photo): static
        {
            $this->photo = $photo;
    
            return $this;
        }
    
        public function getDescription(): ?string
        {
            return $this->description;
        }
    
        public function setDescription(?string $description): static
        {
            $this->description = $description;
    
            return $this;
        }
    
        public function getUniteId(): ?Unite
        {
            return $this->unite_id;
        }
    
        public function setUniteId(?Unite $unite_id): static
        {
            $this->unite_id = $unite_id;
    
            return $this;
        }
    
        public function getFrequenceTypeId(): ?FrequenceType
        {
            return $this->frequence_type_id;
        }
    
        public function setFrequenceTypeId(?FrequenceType $frequence_type_id): static
        {
            $this->frequence_type_id = $frequence_type_id;
    
            return $this;
        }
    }