<?php
namespace 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", name="idCart")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $idCustomer;
/**
* @ORM\Column(type="datetime")
*/
private $creationDate;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $modificationDate;
public function getId(): ?int
{
return $this->id;
}
public function getIdCustomer(): ?int
{
return $this->idCustomer;
}
public function setIdCustomer(int $idCustomer): self
{
$this->idCustomer = $idCustomer;
return $this;
}
public function getCreationDate(): ?\DateTimeInterface
{
return $this->creationDate;
}
public function setCreationDate(\DateTimeInterface $creationDate): self
{
$this->creationDate = $creationDate;
return $this;
}
public function getModificationDate(): ?\DateTimeInterface
{
return $this->modificationDate;
}
public function setModificationDate(?\DateTimeInterface $modificationDate): self
{
$this->modificationDate = $modificationDate;
return $this;
}
}