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/SchoolFacilitator.php

<?php

namespace App\EventBundle\Entity;

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

/**
 * SchoolFacilitator
 *
 * @ORM\Table(name="SchoolFacilitators")
 * @ORM\Entity(repositoryClass="App\EventBundle\Repository\SchoolFacilitatorRepository")
 */
class SchoolFacilitator
{
    /**
     * @ORM\Id
     * @ORM\Column(name="FacilitatorID", type="integer")
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

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

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

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

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

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

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

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

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

    public function getFacilitatorName(): ?string
    {
        return $this->facilitator_name;
    }

    public function setFacilitatorName(?string $facilitator_name): static
    {
        $this->facilitator_name = $facilitator_name;

        return $this;
    }

    public function getPhoneNumber(): ?string
    {
        return $this->phone_number;
    }

    public function setPhoneNumber(?string $phone_number): static
    {
        $this->phone_number = $phone_number;

        return $this;
    }

    public function getMobileNumber(): ?string
    {
        return $this->mobile_number;
    }

    public function setMobileNumber(?string $mobile_number): static
    {
        $this->mobile_number = $mobile_number;

        return $this;
    }

    public function getFaxNumber(): ?string
    {
        return $this->fax_number;
    }

    public function setFaxNumber(?string $fax_number): static
    {
        $this->fax_number = $fax_number;

        return $this;
    }

    public function getEmailAddress(): ?string
    {
        return $this->email_address;
    }

    public function setEmailAddress(?string $email_address): static
    {
        $this->email_address = $email_address;

        return $this;
    }

    /**
     * @return Collection<int, SchoolCourse>
     */
    public function getSchoolCourse(): Collection
    {
        return $this->school_course;
    }

    public function addSchoolCourse(SchoolCourse $schoolCourse): static
    {
        if (!$this->school_course->contains($schoolCourse)) {
            $this->school_course->add($schoolCourse);
            $schoolCourse->setSchoolFacilitator($this);
        }

        return $this;
    }

    public function removeSchoolCourse(SchoolCourse $schoolCourse): static
    {
        if ($this->school_course->removeElement($schoolCourse)) {
            // set the owning side to null (unless already changed)
            if ($schoolCourse->getSchoolFacilitator() === $this) {
                $schoolCourse->setSchoolFacilitator(null);
            }
        }

        return $this;
    }
}