src/Flexy/Apps/CJDropShippingBundle/Entity/CjProduct.php line 12

  1. <?php
  2. namespace App\Flexy\Apps\CJDropShippingBundle\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\Flexy\Apps\CJDropshippingBundle\Entity\CJProductRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassCJProductRepository::class)]
  8. #[ApiResource()]
  9. class CjProduct
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $pid null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $name null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?array $data null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $createdAt null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?array $dataFlexy null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $shipToCountry null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $shipFromCountry null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getPid(): ?string
  34.     {
  35.         return $this->pid;
  36.     }
  37.     public function setPid(string $pid): static
  38.     {
  39.         $this->pid $pid;
  40.         return $this;
  41.     }
  42.     public function getName(): ?string
  43.     {
  44.         return $this->name;
  45.     }
  46.     public function setName(?string $name): static
  47.     {
  48.         $this->name $name;
  49.         return $this;
  50.     }
  51.     public function getData(): ?array
  52.     {
  53.         return $this->data;
  54.     }
  55.     public function setData(?array $data): static
  56.     {
  57.         $this->data $data;
  58.         return $this;
  59.     }
  60.     public function getCreatedAt(): ?\DateTimeInterface
  61.     {
  62.         return $this->createdAt;
  63.     }
  64.     public function setCreatedAt(?\DateTimeInterface $createdAt): static
  65.     {
  66.         $this->createdAt $createdAt;
  67.         return $this;
  68.     }
  69.     public function getDataFlexy(): ?array
  70.     {
  71.         return $this->dataFlexy;
  72.     }
  73.     public function setDataFlexy(?array $dataFlexy): static
  74.     {
  75.         $this->dataFlexy $dataFlexy;
  76.         return $this;
  77.     }
  78.     public function getShipToCountry(): ?string
  79.     {
  80.         return $this->shipToCountry;
  81.     }
  82.     public function setShipToCountry(?string $shipToCountry): static
  83.     {
  84.         $this->shipToCountry $shipToCountry;
  85.         return $this;
  86.     }
  87.     public function getShipFromCountry(): ?string
  88.     {
  89.         return $this->shipFromCountry;
  90.     }
  91.     public function setShipFromCountry(?string $shipFromCountry): static
  92.     {
  93.         $this->shipFromCountry $shipFromCountry;
  94.         return $this;
  95.     }
  96. }