src/Entity/IncomingInvoiceCstm.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\IncomingInvoiceCstmRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassIncomingInvoiceCstmRepository::class)]
  8. #[ApiResource]
  9. class IncomingInvoiceCstm
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\OneToOne(inversedBy'incomingInvoiceCstm'cascade: ['persist''remove'])]
  16.     private ?IncomingInvoice $c null;
  17.     #[ORM\Column(length100nullabletrue)]
  18.     private ?string $storage null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $description null;
  21.     #[ORM\Column(length50nullabletrue)]
  22.     private ?string $what_incoming null;
  23.     #[ORM\Column(length50nullabletrue)]
  24.     private ?string $trading_type null;
  25.     #[ORM\Column(length50nullabletrue)]
  26.     private ?string $supplier null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getC(): ?IncomingInvoice
  32.     {
  33.         return $this->c;
  34.     }
  35.     public function setC(?IncomingInvoice $c): self
  36.     {
  37.         $this->$c;
  38.         return $this;
  39.     }
  40.     public function getStorage(): ?string
  41.     {
  42.         return $this->storage;
  43.     }
  44.     public function setStorage(?string $storage): self
  45.     {
  46.         $this->storage $storage;
  47.         return $this;
  48.     }
  49.     public function getDescription(): ?string
  50.     {
  51.         return $this->description;
  52.     }
  53.     public function setDescription(?string $description): self
  54.     {
  55.         $this->description $description;
  56.         return $this;
  57.     }
  58.     public function getWhatIncoming(): ?string
  59.     {
  60.         return $this->what_incoming;
  61.     }
  62.     public function setWhatIncoming(?string $what_incoming): self
  63.     {
  64.         $this->what_incoming $what_incoming;
  65.         return $this;
  66.     }
  67.     public function getTradingType(): ?string
  68.     {
  69.         return $this->trading_type;
  70.     }
  71.     public function setTradingType(?string $trading_type): self
  72.     {
  73.         $this->trading_type $trading_type;
  74.         return $this;
  75.     }
  76.     public function getSupplier(): ?string
  77.     {
  78.         return $this->supplier;
  79.     }
  80.     public function setSupplier(?string $supplier): self
  81.     {
  82.         $this->supplier $supplier;
  83.         return $this;
  84.     }
  85. }