src/Flexy/Apps/ListingBundle/Entity/Listing.php line 13

  1. <?php
  2. namespace App\Flexy\Apps\ListingBundle\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Flexy\ShopBundle\Entity\Shipping\CityRegion;
  5. use App\Repository\Flexy\Apps\ListingBundle\Entity\ListingRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassListingRepository::class)]
  9. #[ApiResource]
  10. class Listing
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $name null;
  18.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  19.     private ?string $description null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $phone null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $contactName null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $email null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $website null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $address null;
  30.     #[ORM\Column(nullabletrue)]
  31.     private ?array $metaData = [];
  32.     #[ORM\ManyToOne]
  33.     private ?CityRegion $cityRegion null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $type null;
  36.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  37.     private ?\DateTimeInterface $creationDate null;
  38.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  39.     private ?\DateTimeInterface $createdAt null;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getName(): ?string
  45.     {
  46.         return $this->name;
  47.     }
  48.     public function setName(string $name): static
  49.     {
  50.         $this->name $name;
  51.         return $this;
  52.     }
  53.     public function getDescription(): ?string
  54.     {
  55.         return $this->description;
  56.     }
  57.     public function setDescription(?string $description): static
  58.     {
  59.         $this->description $description;
  60.         return $this;
  61.     }
  62.     public function getPhone(): ?string
  63.     {
  64.         return $this->phone;
  65.     }
  66.     public function setPhone(?string $phone): static
  67.     {
  68.         $this->phone $phone;
  69.         return $this;
  70.     }
  71.     public function getContactName(): ?string
  72.     {
  73.         return $this->contactName;
  74.     }
  75.     public function setContactName(?string $contactName): static
  76.     {
  77.         $this->contactName $contactName;
  78.         return $this;
  79.     }
  80.     public function getEmail(): ?string
  81.     {
  82.         return $this->email;
  83.     }
  84.     public function setEmail(?string $email): static
  85.     {
  86.         $this->email $email;
  87.         return $this;
  88.     }
  89.     public function getWebsite(): ?string
  90.     {
  91.         return $this->website;
  92.     }
  93.     public function setWebsite(?string $website): static
  94.     {
  95.         $this->website $website;
  96.         return $this;
  97.     }
  98.     public function getAddress(): ?string
  99.     {
  100.         return $this->address;
  101.     }
  102.     public function setAddress(?string $address): static
  103.     {
  104.         $this->address $address;
  105.         return $this;
  106.     }
  107.     public function getMetaData(): ?array
  108.     {
  109.         return $this->metaData;
  110.     }
  111.     public function setMetaData(?array $metaData): static
  112.     {
  113.         $this->metaData $metaData;
  114.         return $this;
  115.     }
  116.     public function getCityRegion(): ?CityRegion
  117.     {
  118.         return $this->cityRegion;
  119.     }
  120.     public function setCityRegion(?CityRegion $cityRegion): static
  121.     {
  122.         $this->cityRegion $cityRegion;
  123.         return $this;
  124.     }
  125.     public function getType(): ?string
  126.     {
  127.         return $this->type;
  128.     }
  129.     public function setType(?string $type): static
  130.     {
  131.         $this->type $type;
  132.         return $this;
  133.     }
  134.     public function getCreationDate(): ?\DateTimeInterface
  135.     {
  136.         return $this->creationDate;
  137.     }
  138.     public function setCreationDate(?\DateTimeInterface $creationDate): static
  139.     {
  140.         $this->creationDate $creationDate;
  141.         return $this;
  142.     }
  143.     public function getCreatedAt(): ?\DateTimeInterface
  144.     {
  145.         return $this->createdAt;
  146.     }
  147.     public function setCreatedAt(?\DateTimeInterface $createdAt): static
  148.     {
  149.         $this->createdAt $createdAt;
  150.         return $this;
  151.     }
  152. }