src/Entity/Logs/CartShippingOptions.php line 22

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Logs;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * CartShippingOptions
  7.  *
  8.  * @ORM\Table(
  9.  *     name="cart_shipping_options",
  10.  *     indexes={
  11.  *
  12.  *           @ORM\Index(name="cart_id_idx", columns={"cart_id"}),
  13.  *       }
  14.  * )
  15.  *
  16.  * @ORM\Entity(repositoryClass="App\Repository\Logs\CartShippingOptionsRepository")
  17.  */
  18. class CartShippingOptions
  19. {
  20.     /**
  21.      * @ORM\Id()
  22.      *
  23.      * @ORM\GeneratedValue()
  24.      *
  25.      * @ORM\Column(type="integer", name="id_cart_shipping_options")
  26.      */
  27.     private ?int $id null;
  28.     /**
  29.      * @ORM\Column(type="integer",name="cart_id")
  30.      */
  31.     private int $cartId;
  32.     /**
  33.      * @ORM\Column(type="datetime", name="date_add")
  34.      */
  35.     private \DateTime $dateAdd;
  36.     /**
  37.      * @ORM\Column(type="text", name="request_contents")
  38.      */
  39.     private string $requestContents;
  40.     /**
  41.      * @ORM\Column(type="text", name="response_contents")
  42.      */
  43.     private string $responseContents;
  44.     public function __construct()
  45.     {
  46.         $this->dateAdd = new \DateTime();
  47.     }
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getCartId(): int
  53.     {
  54.         return $this->cartId;
  55.     }
  56.     public function setCartId(int $cartId): self
  57.     {
  58.         $this->cartId $cartId;
  59.         return $this;
  60.     }
  61.     public function getDateAdd(): \DateTime
  62.     {
  63.         return $this->dateAdd;
  64.     }
  65.     public function setDateAdd(\DateTime $dateAdd): self
  66.     {
  67.         $this->dateAdd $dateAdd;
  68.         return $this;
  69.     }
  70.     public function getRequestContents(): string
  71.     {
  72.         return $this->requestContents;
  73.     }
  74.     public function setRequestContents(string $requestContents): self
  75.     {
  76.         $this->requestContents $requestContents;
  77.         return $this;
  78.     }
  79.     public function getResponseContents(): string
  80.     {
  81.         return $this->responseContents;
  82.     }
  83.     public function setResponseContents(string $responseContents): self
  84.     {
  85.         $this->responseContents $responseContents;
  86.         return $this;
  87.     }
  88. }