<?php
namespace App\Entity;
use App\Repository\CoursePriceRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CoursePriceRepository::class)
*/
class CoursePrice
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity=Course::class, inversedBy="coursePrice", cascade={"persist", "remove"}, fetch="EAGER")
* @ORM\JoinColumn(nullable=false)
*/
private $course;
/**
* @ORM\Column(type="string", length=255)
*/
private $monthly;
/**
* @ORM\Column(type="string", length=255)
*/
private $quarterly;
/**
* @ORM\Column(type="string", length=255)
*/
private $yearly;
public function getId(): ?int
{
return $this->id;
}
public function getCourse(): ?int
{
return $this->course;
}
public function setCourse(int $course): self
{
$this->course = $course;
return $this;
}
public function getMonthly(): ?string
{
return $this->monthly;
}
public function setMonthly(string $monthly): self
{
$this->monthly = $monthly;
return $this;
}
public function getQuarterly(): ?string
{
return $this->quarterly;
}
public function setQuarterly(string $quarterly): self
{
$this->quarterly = $quarterly;
return $this;
}
public function getYearly(): ?string
{
return $this->yearly;
}
public function setYearly(string $yearly): self
{
$this->yearly = $yearly;
return $this;
}
}