<?php
namespace App\Entity;
use App\Repository\CartCourseRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CartCourseRepository::class)
*/
class CartCourse
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer", name="idCartCourse")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $idCart;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $idCourse;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $quantity;
public function getId(): ?int
{
return $this->id;
}
public function getIdCart(): ?int
{
return $this->idCart;
}
public function setIdCart(int $idCart): self
{
$this->idCart = $idCart;
return $this;
}
public function getIdCourse(): ?int
{
return $this->idCourse;
}
public function setIdCourse(?int $idCourse): self
{
$this->idCourse = $idCourse;
return $this;
}
public function getQuantity(): ?int
{
return $this->quantity;
}
public function setQuantity(?int $quantity): self
{
$this->quantity = $quantity;
return $this;
}
}