src/Entity/CRM/OrderDivided.php line 9

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\OrderDividedRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassOrderDividedRepository::class)]
  6. class OrderDivided
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'orderDivideds')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?Order $orderId null;
  15.     #[ORM\ManyToOne(inversedBy'orderDivideds')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?Consultant $consultant null;
  18.     #[ORM\Column]
  19.     private ?float $value null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getOrderId(): ?Order
  25.     {
  26.         return $this->orderId;
  27.     }
  28.     public function setOrderId(?Order $orderId): static
  29.     {
  30.         $this->orderId $orderId;
  31.         return $this;
  32.     }
  33.     public function getConsultant(): ?Consultant
  34.     {
  35.         return $this->consultant;
  36.     }
  37.     public function setConsultant(?Consultant $consultant): static
  38.     {
  39.         $this->consultant $consultant;
  40.         return $this;
  41.     }
  42.     public function getValue(): ?float
  43.     {
  44.         return $this->value;
  45.     }
  46.     public function setValue(float $value): static
  47.     {
  48.         $this->value $value;
  49.         return $this;
  50.     }
  51. }