src/Entity/Visite.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VisiteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassVisiteRepository::class)]
  6. class Visite
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue(strategy'AUTO')]
  10.     #[ORM\Column(type'integer'uniquetrue)]
  11.     private $id;
  12.     #[ORM\Column(type'date')]
  13.     private $date;
  14.     #[ORM\ManyToOne(targetEntity'Company'inversedBy"visites")]
  15.     #[ORM\JoinColumn(nullablefalseonDelete'CASCADE')]
  16.     private $company;
  17.     #[ORM\Column(type'integer')]
  18.     private $number;
  19.     /**
  20.      * @return mixed
  21.      */
  22.     public function getCompany()
  23.     {
  24.         return $this->company;
  25.     }
  26.     /**
  27.      * @param mixed $company
  28.      */
  29.     public function setCompany($company): void
  30.     {
  31.         $this->company $company;
  32.     }
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getDate(): ?\DateTimeInterface
  38.     {
  39.         return $this->date;
  40.     }
  41.     public function setDate(\DateTimeInterface $date): self
  42.     {
  43.         $this->date $date;
  44.         return $this;
  45.     }
  46.     public function getNumber(): ?int
  47.     {
  48.         return $this->number;
  49.     }
  50.     public function setNumber(int $number): self
  51.     {
  52.         $this->number $number;
  53.         return $this;
  54.     }
  55. }