src/Entity/CartUnsaved.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CartUnsavedRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\ORM\Mapping\Index;
  7. #[ORM\Entity(repositoryClassCartUnsavedRepository::class)]
  8. #[Index(name"cartunsaved_user"columns: ["user_id"])]
  9. class CartUnsaved implements EntityInterface
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $user_id null;
  17.     #[ORM\Column(typeTypes::TEXT)]
  18.     private ?string $cart null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getUserId(): ?string
  24.     {
  25.         return $this->user_id;
  26.     }
  27.     public function setUserId(string $user_id): self
  28.     {
  29.         $this->user_id $user_id;
  30.         return $this;
  31.     }
  32.     public function getCart(): ?string
  33.     {
  34.         return $this->cart;
  35.     }
  36.     public function setCart(string $cart): self
  37.     {
  38.         $this->cart $cart;
  39.         return $this;
  40.     }
  41. }