src/Entity/CoursePrice.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CoursePriceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CoursePriceRepository::class)
  7.  */
  8. class CoursePrice
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\OneToOne(targetEntity=Course::class, inversedBy="coursePrice", cascade={"persist", "remove"}, fetch="EAGER")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $course;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $monthly;
  25.     /**
  26.      * @ORM\Column(type="string", length=255)
  27.      */
  28.     private $quarterly;
  29.     /**
  30.      * @ORM\Column(type="string", length=255)
  31.      */
  32.     private $yearly;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getCourse(): ?int
  38.     {
  39.         return $this->course;
  40.     }
  41.     public function setCourse(int $course): self
  42.     {
  43.         $this->course $course;
  44.         return $this;
  45.     }
  46.     public function getMonthly(): ?string
  47.     {
  48.         return $this->monthly;
  49.     }
  50.     public function setMonthly(string $monthly): self
  51.     {
  52.         $this->monthly $monthly;
  53.         return $this;
  54.     }
  55.     public function getQuarterly(): ?string
  56.     {
  57.         return $this->quarterly;
  58.     }
  59.     public function setQuarterly(string $quarterly): self
  60.     {
  61.         $this->quarterly $quarterly;
  62.         return $this;
  63.     }
  64.     public function getYearly(): ?string
  65.     {
  66.         return $this->yearly;
  67.     }
  68.     public function setYearly(string $yearly): self
  69.     {
  70.         $this->yearly $yearly;
  71.         return $this;
  72.     }
  73. }