Your IP : 216.73.217.79


Current Path : /var/www/v3.cesa.co.za/src/EventBundle/Entity/
Upload File :
Current File : /var/www/v3.cesa.co.za/src/EventBundle/Entity/SchoolCourse.php

<?php

namespace App\EventBundle\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;

/**
 * SchoolCourse
 *
 * @ORM\Table(name="SchoolCourses")
 * @ORM\Entity(repositoryClass="App\EventBundle\Repository\SchoolCourseRepository")
 */
class SchoolCourse
{
    /**
     * @ORM\Id
     * @ORM\Column(name="SchoolCourseID", type="integer")
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @ORM\Column(name="CourseName", type="string", length=255, nullable=true)
     */
    private $course_name;

    /**
     * @ORM\Column(name="Level", type="string", length=255, nullable=true)
     */
    private $level;

    /**
     * @ORM\Column(name="CPD", type="string", length=50, nullable=true)
     */
    private $cpd;

    /**
     * @ORM\Column(name="AccredNum", type="string", length=50, nullable=true)
     */
    private $accred_num;

    /**
     * @ORM\Column(name="CourseDescription", type="text", nullable=true)
     */
    private $course_description;

    /**
     * @ORM\Column(name="FileAttachment", type="string", length=255, nullable=true)
     */
    private $file_attachment;

    /**
     * @ORM\Column(name="Hours", type="integer", nullable=false, options={"default": 0})
     */
    private $hours;

    /**
     * @ORM\Column(name="NQFLevel", type="string", length=50, nullable=true)
     */
    private $nqf_level;

    /**
     * @ORM\Column(name="Category", type="string", length=50, nullable=true)
     */
    private $category;

    /**
     * @ORM\Column(name="SACPCMPNum", type="string", length=255, nullable=true)
     */
    private $sacpcmp_num;

    /**
     * @ORM\Column(name="AccredNum2", type="string", length=255, nullable=true)
     */
    private $accred_num_2;

    /**
     * @ORM\Column(name="CourseType", type="string", columnDefinition="enum('CESA Course', 'Inhouse Client Course')", length=255, nullable=true)
     */
    private $course_type;

    /**
     * @ORM\Column(name="DescOverview", type="text", nullable=true)
     */
    private $desc_overview;

    /**
     * @ORM\Column(name="DescWhyAttend", type="text", nullable=true)
     */
    private $desc_why_attend;

    /**
     * @ORM\Column(name="DescOutcomes", type="text", nullable=true)
     */
    private $desc_outcomes;

    /**
     * @ORM\Column(name="DescObjectives", type="text", nullable=true)
     */
    private $desc_objectives;

    /**
     * @ORM\Column(name="DescProgram", type="text", nullable=true)
     */
    private $desc_program;

    /**
     * @ORM\Column(name="DescWhoAttend", type="text", nullable=true)
     */
    private $desc_who_attend;

    /**
     * @ORM\Column(name="CurrentlyOffered", type="boolean", nullable=false, options={"default": 1})
     */
    private $currently_offered;

    /**
     * @ORM\Column(name="AdvertInfo", type="text", nullable=true)
     */
    private $advert_info;

    /**
     * @ORM\Column(name="TempDescOverview", type="text", nullable=true)
     */
    private $temp_desc_overview;

    /**
     * @ORM\Column(name="TempDescWhyAttend", type="text", nullable=true)
     */
    private $temp_desc_why_attend;

    /**
     * @ORM\Column(name="TempDescOutcomes", type="text", nullable=true)
     */
    private $temp_desc_outcomes;

    /**
     * @ORM\Column(name="TempDescProgram", type="text", nullable=true)
     */
    private $temp_desc_program;

    /**
     * @ORM\Column(name="TempDescWhoAttend", type="text", nullable=true)
     */
    private $temp_desc_who_attend;

    /**
     * @ORM\Column(name="AcceptTemp", type="string", length=1, nullable=true)
     */
    private $accept_temp;

    /**
     * @ORM\Column(name="Testimonials", type="text", nullable=true)
     */
    private $testimonials;

    /**
     * @ORM\ManyToOne(targetEntity="SchoolWebCategory", inversedBy="school_course")
     * @ORM\JoinColumn(name="WebCategory", referencedColumnName="WebCategoryID")
     */
    private $school_web_category;

    /**
     * @ORM\ManyToOne(targetEntity="SchoolFacilitator", inversedBy="school_course")
     * @ORM\JoinColumn(name="FacilitatorID", referencedColumnName="FacilitatorID")
     */
    private $school_facilitator;

    /**
     * @ORM\ManyToOne(targetEntity="SchoolProvider", inversedBy="school_course")
     * @ORM\JoinColumn(name="ProviderID", referencedColumnName="ProviderID")
     */
    private $school_provider;

    /**
     * @ORM\ManyToOne(targetEntity="TrainingProvider", inversedBy="school_course")
     * @ORM\JoinColumn(name="ProviderID", referencedColumnName="ProviderID")
     */
    private $training_provider;

    /**
     * @ORM\OneToMany(targetEntity="SchoolEvent", mappedBy="school_course")
     */
    private $school_event;

    public function __construct()
    {
        $this->school_event = new ArrayCollection();
    }

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getCourseName(): ?string
    {
        return $this->course_name;
    }

    public function setCourseName(?string $course_name): static
    {
        $this->course_name = $course_name;

        return $this;
    }

    public function getLevel(): ?string
    {
        return $this->level;
    }

    public function setLevel(?string $level): static
    {
        $this->level = $level;

        return $this;
    }

    public function getCpd(): ?string
    {
        return $this->cpd;
    }

    public function setCpd(?string $cpd): static
    {
        $this->cpd = $cpd;

        return $this;
    }

    public function getAccredNum(): ?string
    {
        return $this->accred_num;
    }

    public function setAccredNum(?string $accred_num): static
    {
        $this->accred_num = $accred_num;

        return $this;
    }

    public function getCourseDescription()
    {
        return $this->course_description;
    }

    public function setCourseDescription($course_description): static
    {
        $this->course_description = $course_description;

        return $this;
    }

    public function getFileAttachment(): ?string
    {
        return $this->file_attachment;
    }

    public function setFileAttachment(?string $file_attachment): static
    {
        $this->file_attachment = $file_attachment;

        return $this;
    }

    public function getHours(): ?int
    {
        return $this->hours;
    }

    public function setHours(int $hours): static
    {
        $this->hours = $hours;

        return $this;
    }

    public function getNqfLevel(): ?string
    {
        return $this->nqf_level;
    }

    public function setNqfLevel(?string $nqf_level): static
    {
        $this->nqf_level = $nqf_level;

        return $this;
    }

    public function getCategory(): ?string
    {
        return $this->category;
    }

    public function setCategory(?string $category): static
    {
        $this->category = $category;

        return $this;
    }

    public function getSacpcmpNum(): ?string
    {
        return $this->sacpcmp_num;
    }

    public function setSacpcmpNum(?string $sacpcmp_num): static
    {
        $this->sacpcmp_num = $sacpcmp_num;

        return $this;
    }

    public function getAccredNum2(): ?string
    {
        return $this->accred_num_2;
    }

    public function setAccredNum2(?string $accred_num_2): static
    {
        $this->accred_num_2 = $accred_num_2;

        return $this;
    }

    public function getCourseType(): ?string
    {
        return $this->course_type;
    }

    public function setCourseType(?string $course_type): static
    {
        $this->course_type = $course_type;

        return $this;
    }

    public function getDescOverview(): ?string
    {
        return $this->desc_overview;
    }

    public function setDescOverview(?string $desc_overview): static
    {
        $this->desc_overview = $desc_overview;

        return $this;
    }

    public function getDescWhyAttend(): ?string
    {
        return $this->desc_why_attend;
    }

    public function setDescWhyAttend(?string $desc_why_attend): static
    {
        $this->desc_why_attend = $desc_why_attend;

        return $this;
    }

    public function getDescOutcomes(): ?string
    {
        return $this->desc_outcomes;
    }

    public function setDescOutcomes(?string $desc_outcomes): static
    {
        $this->desc_outcomes = $desc_outcomes;

        return $this;
    }

    public function getDescObjectives(): ?string
    {
        return $this->desc_objectives;
    }

    public function setDescObjectives(?string $desc_objectives): static
    {
        $this->desc_objectives = $desc_objectives;

        return $this;
    }

    public function getDescProgram(): ?string
    {
        return $this->desc_program;
    }

    public function setDescProgram(?string $desc_program): static
    {
        $this->desc_program = $desc_program;

        return $this;
    }

    public function getDescWhoAttend(): ?string
    {
        return $this->desc_who_attend;
    }

    public function setDescWhoAttend(?string $desc_who_attend): static
    {
        $this->desc_who_attend = $desc_who_attend;

        return $this;
    }

    public function isCurrentlyOffered(): ?bool
    {
        return $this->currently_offered;
    }

    public function setCurrentlyOffered(bool $currently_offered): static
    {
        $this->currently_offered = $currently_offered;

        return $this;
    }

    public function getAdvertInfo(): ?string
    {
        return $this->advert_info;
    }

    public function setAdvertInfo(?string $advert_info): static
    {
        $this->advert_info = $advert_info;

        return $this;
    }

    public function getTempDescOverview(): ?string
    {
        return $this->temp_desc_overview;
    }

    public function setTempDescOverview(?string $temp_desc_overview): static
    {
        $this->temp_desc_overview = $temp_desc_overview;

        return $this;
    }

    public function getTempDescWhyAttend(): ?string
    {
        return $this->temp_desc_why_attend;
    }

    public function setTempDescWhyAttend(?string $temp_desc_why_attend): static
    {
        $this->temp_desc_why_attend = $temp_desc_why_attend;

        return $this;
    }

    public function getTempDescOutcomes(): ?string
    {
        return $this->temp_desc_outcomes;
    }

    public function setTempDescOutcomes(?string $temp_desc_outcomes): static
    {
        $this->temp_desc_outcomes = $temp_desc_outcomes;

        return $this;
    }

    public function getTempDescProgram(): ?string
    {
        return $this->temp_desc_program;
    }

    public function setTempDescProgram(?string $temp_desc_program): static
    {
        $this->temp_desc_program = $temp_desc_program;

        return $this;
    }

    public function getTempDescWhoAttend(): ?string
    {
        return $this->temp_desc_who_attend;
    }

    public function setTempDescWhoAttend(?string $temp_desc_who_attend): static
    {
        $this->temp_desc_who_attend = $temp_desc_who_attend;

        return $this;
    }

    public function getAcceptTemp(): ?string
    {
        return $this->accept_temp;
    }

    public function setAcceptTemp(?string $accept_temp): static
    {
        $this->accept_temp = $accept_temp;

        return $this;
    }

    public function getTestimonials(): ?string
    {
        return $this->testimonials;
    }

    public function setTestimonials(?string $testimonials): static
    {
        $this->testimonials = $testimonials;

        return $this;
    }

    /**
     * @return Collection<int, SchoolEvent>
     */
    public function getSchoolEvent(): Collection
    {
        return $this->school_event;
    }

    public function addSchoolEvent(SchoolEvent $schoolEvent): static
    {
        if (!$this->school_event->contains($schoolEvent)) {
            $this->school_event->add($schoolEvent);
            $schoolEvent->setSchoolCourse($this);
        }

        return $this;
    }

    public function removeSchoolEvent(SchoolEvent $schoolEvent): static
    {
        if ($this->school_event->removeElement($schoolEvent)) {
            // set the owning side to null (unless already changed)
            if ($schoolEvent->getSchoolCourse() === $this) {
                $schoolEvent->setSchoolCourse(null);
            }
        }

        return $this;
    }

    public function getSchoolWebCategory(): ?SchoolWebCategory
    {
        return $this->school_web_category;
    }

    public function setSchoolWebCategory(?SchoolWebCategory $school_web_category): static
    {
        $this->school_web_category = $school_web_category;

        return $this;
    }

    public function getSchoolFacilitator(): ?SchoolFacilitator
    {
        return $this->school_facilitator;
    }

    public function setSchoolFacilitator(?SchoolFacilitator $school_facilitator): static
    {
        $this->school_facilitator = $school_facilitator;

        return $this;
    }

    public function getSchoolProvider(): ?SchoolProvider
    {
        return $this->school_provider;
    }

    public function setSchoolProvider(?SchoolProvider $school_provider): static
    {
        $this->school_provider = $school_provider;

        return $this;
    }

    public function getTrainingProvider(): ?TrainingProvider
    {
        return $this->training_provider;
    }

    public function setTrainingProvider(?TrainingProvider $training_provider): static
    {
        $this->training_provider = $training_provider;

        return $this;
    }
}