src/Entity/CustomerControl.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomerControlRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCustomerControlRepository::class)]
  6. class CustomerControl
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'customer')]
  13.     private $user;
  14.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'customerControl')]
  15.     private $customer;
  16.     #[ORM\Column(name'finish'type'boolean'nullabletrue)]
  17.     private ?bool $finish;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     /**
  23.      * @return mixed
  24.      */
  25.     public function getUser()
  26.     {
  27.         return $this->user;
  28.     }
  29.     /**
  30.      * @param mixed $user
  31.      */
  32.     public function setUser($user): void
  33.     {
  34.         $this->user $user;
  35.     }
  36.     /**
  37.      * @return mixed
  38.      */
  39.     public function getCustomer()
  40.     {
  41.         return $this->customer;
  42.     }
  43.     /**
  44.      * @param mixed $customer
  45.      */
  46.     public function setCustomer($customer): void
  47.     {
  48.         $this->customer $customer;
  49.     }
  50.     /**
  51.      * @return bool|null
  52.      */
  53.     public function getFinish(): ?bool
  54.     {
  55.         return $this->finish;
  56.     }
  57.     /**
  58.      * @param bool|null $finish
  59.      */
  60.     public function setFinish(?bool $finish): void
  61.     {
  62.         $this->finish $finish;
  63.     }
  64. }