| Current Path : /var/www/v3.cesa.co.za/src/EventBundle/Entity/ |
| Current File : /var/www/v3.cesa.co.za/src/EventBundle/Entity/TrainingProvider.php |
<?php
namespace App\EventBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* TrainingProvider
*
* @ORM\Table(name="TrainingProviders")
* @ORM\Entity(repositoryClass="App\EventBundle\Repository\TrainingProviderRepository")
*/
class TrainingProvider
{
/**
* @ORM\Id
* @ORM\Column(name="ProviderID", type="integer")
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @ORM\Column(name="CompanyName", type="string", length=255, nullable=true)
*/
private $company_name;
/**
* @ORM\Column(name="ContactTitle", type="string", length=50)
*/
private $contact_title;
/**
* @ORM\Column(name="ContactFirstName", type="string", length=255, nullable=true)
*/
private $contact_first_name;
/**
* @ORM\Column(name="ContactSurname", type="string", length=255, nullable=true)
*/
private $contact_surname;
/**
* @ORM\Column(name="Designation", type="string", length=255, nullable=true)
*/
private $designation;
/**
* @ORM\Column(name="IDNumber", type="string", length=255, nullable=true)
*/
private $id_number;
/**
* @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\Column(name="Password", type="string", length=255, nullable=true)
*/
private $password;
/**
* @ORM\Column(name="PhysicalAddress1", type="string", length=255, nullable=true)
*/
private $physical_address_1;
/**
* @ORM\Column(name="PhysicalAddress2", type="string", length=255, nullable=true)
*/
private $physical_address_2;
/**
* @ORM\Column(name="PhysicalCity", type="string", length=255, nullable=true)
*/
private $physical_city;
/**
* @ORM\Column(name="PhysicalCode", type="string", length=255, nullable=true)
*/
private $physical_code;
/**
* @ORM\Column(name="PhysicalProvince", type="string", length=255, nullable=true)
*/
private $physical_province;
/**
* @ORM\Column(name="PhysicalCountry", type="string", length=255, nullable=true)
*/
private $physical_country;
/**
* @ORM\Column(name="PostalAddress1", type="string", length=255, nullable=true)
*/
private $postal_address_1;
/**
* @ORM\Column(name="PostalAddress2", type="string", length=255, nullable=true)
*/
private $postal_address_2;
/**
* @ORM\Column(name="PostalCity", type="string", length=255, nullable=true)
*/
private $postal_city;
/**
* @ORM\Column(name="PostalCode", type="string", length=255, nullable=true)
*/
private $postal_code;
/**
* @ORM\Column(name="PostalProvince", type="string", length=255, nullable=true)
*/
private $postal_province;
/**
* @ORM\Column(name="PostalCountry", type="string", length=255, nullable=true)
*/
private $postal_country;
/**
* @ORM\Column(name="Website", type="string", length=255, nullable=true)
*/
private $website;
/**
* @ORM\Column(name="CompanyRegNo", type="string", length=255, nullable=true)
*/
private $company_reg_no;
/**
* @ORM\Column(name="VATNumber", type="string", length=255, nullable=true)
*/
private $vat_number;
/**
* @ORM\Column(name="BBBEELevel", type="string", length=255, nullable=true)
*/
private $bbbee_level;
/**
* @ORM\Column(name="CSDNo", type="string", length=255, nullable=true)
*/
private $csd_no;
/**
* @ORM\Column(name="Reference1Company", type="string", length=255, nullable=true)
*/
private $reference_1_company;
/**
* @ORM\Column(name="Reference1Contact", type="string", length=255, nullable=true)
*/
private $reference_1_contract;
/**
* @ORM\Column(name="Reference1Cell", type="string", length=255, nullable=true)
*/
private $reference_1_cell;
/**
* @ORM\Column(name="Reference1Email", type="string", length=255, nullable=true)
*/
private $reference_1_email;
/**
* @ORM\Column(name="Reference2Company", type="string", length=255, nullable=true)
*/
private $reference_2_company;
/**
* @ORM\Column(name="Reference2Contact", type="string", length=255, nullable=true)
*/
private $reference_2_contract;
/**
* @ORM\Column(name="Reference2Cell", type="string", length=255, nullable=true)
*/
private $reference_2_cell;
/**
* @ORM\Column(name="Reference2Email", type="string", length=255, nullable=true)
*/
private $reference_2_email;
/**
* @ORM\Column(name="Reference3Company", type="string", length=255, nullable=true)
*/
private $reference_3_company;
/**
* @ORM\Column(name="Reference3Contact", type="string", length=255, nullable=true)
*/
private $reference_3_contract;
/**
* @ORM\Column(name="Reference3Cell", type="string", length=255, nullable=true)
*/
private $reference_3_cell;
/**
* @ORM\Column(name="Reference3Email", type="string", length=255, nullable=true)
*/
private $reference_3_email;
/**
* @ORM\Column(name="InterestWebinar", type="string", length=1, nullable=true)
*/
private $interest_webinar;
/**
* @ORM\Column(name="InterestClassroom", type="string", length=1, nullable=true)
*/
private $interest_classroom;
/**
* @ORM\Column(name="InterestVideo", type="string", length=1, nullable=true)
*/
private $interest_video;
/**
* @ORM\Column(name="InterestPublications", type="string", length=1, nullable=true)
*/
private $interest_publications;
/**
* @ORM\Column(name="DateUpdated", type="datetime", nullable=true)
*/
private $date_updated;
/**
* @ORM\Column(name="UpdatedBy", type="string", length=255, nullable=true)
*/
private $updated_by;
/**
* @ORM\Column(name="Archived", type="boolean", nullable=false, options={"default": 0})
*/
private $archived;
/**
* @ORM\OneToMany(targetEntity="SchoolCourse", mappedBy="training_provider")
*/
private $school_course;
/**
* @ORM\OneToMany(targetEntity="SchoolEvent", mappedBy="training_provider")
*/
private $school_event;
public function __construct()
{
$this->school_course = new ArrayCollection();
$this->school_event = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getCompanyName(): ?string
{
return $this->company_name;
}
public function setCompanyName(?string $company_name): static
{
$this->company_name = $company_name;
return $this;
}
public function getContactTitle(): ?string
{
return $this->contact_title;
}
public function setContactTitle(string $contact_title): static
{
$this->contact_title = $contact_title;
return $this;
}
public function getContactFirstName(): ?string
{
return $this->contact_first_name;
}
public function setContactFirstName(?string $contact_first_name): static
{
$this->contact_first_name = $contact_first_name;
return $this;
}
public function getContactSurname(): ?string
{
return $this->contact_surname;
}
public function setContactSurname(?string $contact_surname): static
{
$this->contact_surname = $contact_surname;
return $this;
}
public function getDesignation(): ?string
{
return $this->designation;
}
public function setDesignation(?string $designation): static
{
$this->designation = $designation;
return $this;
}
public function getIdNumber(): ?string
{
return $this->id_number;
}
public function setIdNumber(?string $id_number): static
{
$this->id_number = $id_number;
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;
}
public function getPassword(): ?string
{
return $this->password;
}
public function setPassword(?string $password): static
{
$this->password = $password;
return $this;
}
public function getPhysicalAddress1(): ?string
{
return $this->physical_address_1;
}
public function setPhysicalAddress1(?string $physical_address_1): static
{
$this->physical_address_1 = $physical_address_1;
return $this;
}
public function getPhysicalAddress2(): ?string
{
return $this->physical_address_2;
}
public function setPhysicalAddress2(?string $physical_address_2): static
{
$this->physical_address_2 = $physical_address_2;
return $this;
}
public function getPhysicalCity(): ?string
{
return $this->physical_city;
}
public function setPhysicalCity(?string $physical_city): static
{
$this->physical_city = $physical_city;
return $this;
}
public function getPhysicalCode(): ?string
{
return $this->physical_code;
}
public function setPhysicalCode(?string $physical_code): static
{
$this->physical_code = $physical_code;
return $this;
}
public function getPhysicalProvince(): ?string
{
return $this->physical_province;
}
public function setPhysicalProvince(?string $physical_province): static
{
$this->physical_province = $physical_province;
return $this;
}
public function getPhysicalCountry(): ?string
{
return $this->physical_country;
}
public function setPhysicalCountry(?string $physical_country): static
{
$this->physical_country = $physical_country;
return $this;
}
public function getPostalAddress1(): ?string
{
return $this->postal_address_1;
}
public function setPostalAddress1(?string $postal_address_1): static
{
$this->postal_address_1 = $postal_address_1;
return $this;
}
public function getPostalAddress2(): ?string
{
return $this->postal_address_2;
}
public function setPostalAddress2(?string $postal_address_2): static
{
$this->postal_address_2 = $postal_address_2;
return $this;
}
public function getPostalCity(): ?string
{
return $this->postal_city;
}
public function setPostalCity(?string $postal_city): static
{
$this->postal_city = $postal_city;
return $this;
}
public function getPostalCode(): ?string
{
return $this->postal_code;
}
public function setPostalCode(?string $postal_code): static
{
$this->postal_code = $postal_code;
return $this;
}
public function getPostalProvince(): ?string
{
return $this->postal_province;
}
public function setPostalProvince(?string $postal_province): static
{
$this->postal_province = $postal_province;
return $this;
}
public function getPostalCountry(): ?string
{
return $this->postal_country;
}
public function setPostalCountry(?string $postal_country): static
{
$this->postal_country = $postal_country;
return $this;
}
public function getWebsite(): ?string
{
return $this->website;
}
public function setWebsite(?string $website): static
{
$this->website = $website;
return $this;
}
public function getCompanyRegNo(): ?string
{
return $this->company_reg_no;
}
public function setCompanyRegNo(?string $company_reg_no): static
{
$this->company_reg_no = $company_reg_no;
return $this;
}
public function getVatNumber(): ?string
{
return $this->vat_number;
}
public function setVatNumber(?string $vat_number): static
{
$this->vat_number = $vat_number;
return $this;
}
public function getBbbeeLevel(): ?string
{
return $this->bbbee_level;
}
public function setBbbeeLevel(?string $bbbee_level): static
{
$this->bbbee_level = $bbbee_level;
return $this;
}
public function getCsdNo(): ?string
{
return $this->csd_no;
}
public function setCsdNo(?string $csd_no): static
{
$this->csd_no = $csd_no;
return $this;
}
public function getReference1Company(): ?string
{
return $this->reference_1_company;
}
public function setReference1Company(?string $reference_1_company): static
{
$this->reference_1_company = $reference_1_company;
return $this;
}
public function getReference1Contract(): ?string
{
return $this->reference_1_contract;
}
public function setReference1Contract(?string $reference_1_contract): static
{
$this->reference_1_contract = $reference_1_contract;
return $this;
}
public function getReference1Cell(): ?string
{
return $this->reference_1_cell;
}
public function setReference1Cell(?string $reference_1_cell): static
{
$this->reference_1_cell = $reference_1_cell;
return $this;
}
public function getReference1Email(): ?string
{
return $this->reference_1_email;
}
public function setReference1Email(?string $reference_1_email): static
{
$this->reference_1_email = $reference_1_email;
return $this;
}
public function getReference2Company(): ?string
{
return $this->reference_2_company;
}
public function setReference2Company(?string $reference_2_company): static
{
$this->reference_2_company = $reference_2_company;
return $this;
}
public function getReference2Contract(): ?string
{
return $this->reference_2_contract;
}
public function setReference2Contract(?string $reference_2_contract): static
{
$this->reference_2_contract = $reference_2_contract;
return $this;
}
public function getReference2Cell(): ?string
{
return $this->reference_2_cell;
}
public function setReference2Cell(?string $reference_2_cell): static
{
$this->reference_2_cell = $reference_2_cell;
return $this;
}
public function getReference2Email(): ?string
{
return $this->reference_2_email;
}
public function setReference2Email(?string $reference_2_email): static
{
$this->reference_2_email = $reference_2_email;
return $this;
}
public function getReference3Company(): ?string
{
return $this->reference_3_company;
}
public function setReference3Company(?string $reference_3_company): static
{
$this->reference_3_company = $reference_3_company;
return $this;
}
public function getReference3Contract(): ?string
{
return $this->reference_3_contract;
}
public function setReference3Contract(?string $reference_3_contract): static
{
$this->reference_3_contract = $reference_3_contract;
return $this;
}
public function getReference3Cell(): ?string
{
return $this->reference_3_cell;
}
public function setReference3Cell(?string $reference_3_cell): static
{
$this->reference_3_cell = $reference_3_cell;
return $this;
}
public function getReference3Email(): ?string
{
return $this->reference_3_email;
}
public function setReference3Email(?string $reference_3_email): static
{
$this->reference_3_email = $reference_3_email;
return $this;
}
public function getInterestWebinar(): ?string
{
return $this->interest_webinar;
}
public function setInterestWebinar(?string $interest_webinar): static
{
$this->interest_webinar = $interest_webinar;
return $this;
}
public function getInterestClassroom(): ?string
{
return $this->interest_classroom;
}
public function setInterestClassroom(?string $interest_classroom): static
{
$this->interest_classroom = $interest_classroom;
return $this;
}
public function getInterestVideo(): ?string
{
return $this->interest_video;
}
public function setInterestVideo(?string $interest_video): static
{
$this->interest_video = $interest_video;
return $this;
}
public function getInterestPublications(): ?string
{
return $this->interest_publications;
}
public function setInterestPublications(?string $interest_publications): static
{
$this->interest_publications = $interest_publications;
return $this;
}
public function getDateUpdated(): ?\DateTimeInterface
{
return $this->date_updated;
}
public function setDateUpdated(?\DateTimeInterface $date_updated): static
{
$this->date_updated = $date_updated;
return $this;
}
public function getUpdatedBy(): ?string
{
return $this->updated_by;
}
public function setUpdatedBy(?string $updated_by): static
{
$this->updated_by = $updated_by;
return $this;
}
public function isArchived(): ?bool
{
return $this->archived;
}
public function setArchived(bool $archived): static
{
$this->archived = $archived;
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->setTrainingProvider($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->getTrainingProvider() === $this) {
$schoolCourse->setTrainingProvider(null);
}
}
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->setTrainingProvider($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->getTrainingProvider() === $this) {
$schoolEvent->setTrainingProvider(null);
}
}
return $this;
}
}