src/Flexy/Apps/CJDropShippingBundle/Entity/CjProduct.php line 12
<?php
namespace App\Flexy\Apps\CJDropShippingBundle\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\Flexy\Apps\CJDropshippingBundle\Entity\CJProductRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CJProductRepository::class)]
#[ApiResource()]
class CjProduct
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $pid = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $name = null;
#[ORM\Column(nullable: true)]
private ?array $data = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $createdAt = null;
#[ORM\Column(nullable: true)]
private ?array $dataFlexy = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $shipToCountry = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $shipFromCountry = null;
public function getId(): ?int
{
return $this->id;
}
public function getPid(): ?string
{
return $this->pid;
}
public function setPid(string $pid): static
{
$this->pid = $pid;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): static
{
$this->name = $name;
return $this;
}
public function getData(): ?array
{
return $this->data;
}
public function setData(?array $data): static
{
$this->data = $data;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getDataFlexy(): ?array
{
return $this->dataFlexy;
}
public function setDataFlexy(?array $dataFlexy): static
{
$this->dataFlexy = $dataFlexy;
return $this;
}
public function getShipToCountry(): ?string
{
return $this->shipToCountry;
}
public function setShipToCountry(?string $shipToCountry): static
{
$this->shipToCountry = $shipToCountry;
return $this;
}
public function getShipFromCountry(): ?string
{
return $this->shipFromCountry;
}
public function setShipFromCountry(?string $shipFromCountry): static
{
$this->shipFromCountry = $shipFromCountry;
return $this;
}
}