<?phpnamespace App\Entity;use App\Repository\CartRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CartRepository::class) */class Cart{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $session_id; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="carts") */ private $client; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="carts") */ private $product; /** * @ORM\Column(type="integer") */ private $amount_users; /** * @ORM\Column(type="decimal", precision=10, scale=2) */ private $total_price_month; /** * @ORM\Column(type="datetime") */ private $reg_datetime; /** * @ORM\ManyToOne(targetEntity=Addon::class, inversedBy="carts") */ private $addon; /** * @ORM\ManyToOne(targetEntity=ProductWebhosting::class, inversedBy="carts") */ private $product_webhosting; public function getId(): ?int { return $this->id; } public function getSessionId(): ?string { return $this->session_id; } public function setSessionId(?string $session_id): self { $this->session_id = $session_id; return $this; } public function getClient(): ?User { return $this->client; } public function setClient(?User $client): self { $this->client = $client; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getAmountUsers(): ?int { return $this->amount_users; } public function setAmountUsers(int $amount_users): self { $this->amount_users = $amount_users; return $this; } public function getTotalPriceMonth(): ?string { return $this->total_price_month; } public function setTotalPriceMonth(string $total_price_month): self { $this->total_price_month = $total_price_month; return $this; } public function getRegDatetime(): ?\DateTimeInterface { return $this->reg_datetime; } public function setRegDatetime(\DateTimeInterface $reg_datetime): self { $this->reg_datetime = $reg_datetime; return $this; } public function getAddon(): ?Addon { return $this->addon; } public function setAddon(?Addon $addon): self { $this->addon = $addon; return $this; } public function getProductWebhosting(): ?ProductWebhosting { return $this->product_webhosting; } public function setProductWebhosting(?ProductWebhosting $product_webhosting): self { $this->product_webhosting = $product_webhosting; return $this; }}