| Current Path : /var/www/v3.cesa.co.za/src/EventBundle/Entity/ |
| Current File : /var/www/v3.cesa.co.za/src/EventBundle/Entity/Questionnaire.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;
/**
* Questionnaire
*
* @ORM\Table(name="Questionnaires")
* @ORM\Entity(repositoryClass="App\EventBundle\Repository\QuestionnaireRepository")
*/
class Questionnaire
{
/**
* @ORM\Id
* @ORM\Column(name="Questionnaire_ID", type="integer")
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @ORM\Column(name="Questionnaire_Name", type="string", length=255, nullable=true)
*/
private $questionnaire_name;
/**
* @ORM\Column(name="Score", type="integer", nullable=true, options={"default": 0})
*/
private $score;
/**
* @ORM\Column(name="PassPerc", type="integer", nullable=true, options={"default": 0})
*/
private $pass_perc;
/**
* @ORM\Column(name="GoodResultText", type="text", nullable=true)
*/
private $good_result_text;
/**
* @ORM\Column(name="BadResultText", type="text", nullable=true)
*/
private $bad_result_text;
/**
* @ORM\Column(name="HasScore", type="integer", nullable=true, options={"default": 0})
*/
private $has_score;
/**
* @ORM\Column(name="TopicID", type="integer", nullable=true, options={"default": 0})
*/
private $topic_id;
/**
* @ORM\Column(name="CanDistrib", type="boolean", nullable=false, options={"default": 0})
*/
private $can_distrib;
/**
* @ORM\Column(name="DistribAccessCode", type="string", length=50, nullable=true)
*/
private $distrib_access_code;
/**
* @ORM\Column(name="Anonymous", type="boolean", nullable=false, options={"default": 0})
*/
private $anonymous;
/**
* @ORM\Column(name="ShowSubscribeOption", type="boolean", nullable=false, options={"default": 0})
*/
private $show_subscribe_option;
/**
* @ORM\Column(name="CloseDate", type="datetime", nullable=true)
*/
private $close_date;
/**
* @ORM\Column(name="Introduction", type="text", nullable=true)
*/
private $introduction;
/**
* @ORM\Column(name="DateCreated", type="datetime", nullable=false, options={"default": "CURRENT_TIMESTAMP"})
*/
private $date_created;
/**
* @ORM\Column(name="Website", type="string", length=1, nullable=true, options={"default": "i"})
*/
private $website;
/**
* @ORM\Column(name="ServiceProviderID", type="integer", nullable=true, options={"default": 0})
*/
private $service_provider_id;
/**
* @ORM\Column(name="ServiceProviderID2", type="integer", nullable=true, options={"default": 0})
*/
private $service_provider_id_2;
/**
* @ORM\Column(name="ServiceProviderID3", type="integer", nullable=true, options={"default": 0})
*/
private $service_provider_id_3;
/**
* @ORM\Column(name="ServiceProviderID4", type="integer", nullable=true, options={"default": 0})
*/
private $service_provider_id_4;
/**
* @ORM\Column(name="QuestionnaireType", type="string", length=1, nullable=false, options={"default": "G"})
*/
private $questionnaire_type;
/**
* @ORM\OneToMany(targetEntity="SchoolEvent", mappedBy="questionnaire")
*/
private $school_event;
public function __construct()
{
$this->school_event = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getQuestionnaireName(): ?string
{
return $this->questionnaire_name;
}
public function setQuestionnaireName(?string $questionnaire_name): static
{
$this->questionnaire_name = $questionnaire_name;
return $this;
}
public function getScore(): ?int
{
return $this->score;
}
public function setScore(?int $score): static
{
$this->score = $score;
return $this;
}
public function getPassPerc(): ?int
{
return $this->pass_perc;
}
public function setPassPerc(?int $pass_perc): static
{
$this->pass_perc = $pass_perc;
return $this;
}
public function getGoodResultText(): ?string
{
return $this->good_result_text;
}
public function setGoodResultText(?string $good_result_text): static
{
$this->good_result_text = $good_result_text;
return $this;
}
public function getBadResultText(): ?string
{
return $this->bad_result_text;
}
public function setBadResultText(?string $bad_result_text): static
{
$this->bad_result_text = $bad_result_text;
return $this;
}
public function getHasScore(): ?int
{
return $this->has_score;
}
public function setHasScore(?int $has_score): static
{
$this->has_score = $has_score;
return $this;
}
public function getTopicId(): ?int
{
return $this->topic_id;
}
public function setTopicId(?int $topic_id): static
{
$this->topic_id = $topic_id;
return $this;
}
public function isCanDistrib(): ?bool
{
return $this->can_distrib;
}
public function setCanDistrib(bool $can_distrib): static
{
$this->can_distrib = $can_distrib;
return $this;
}
public function getDistribAccessCode(): ?string
{
return $this->distrib_access_code;
}
public function setDistribAccessCode(?string $distrib_access_code): static
{
$this->distrib_access_code = $distrib_access_code;
return $this;
}
public function isAnonymous(): ?bool
{
return $this->anonymous;
}
public function setAnonymous(bool $anonymous): static
{
$this->anonymous = $anonymous;
return $this;
}
public function isShowSubscribeOption(): ?bool
{
return $this->show_subscribe_option;
}
public function setShowSubscribeOption(bool $show_subscribe_option): static
{
$this->show_subscribe_option = $show_subscribe_option;
return $this;
}
public function getCloseDate(): ?\DateTimeInterface
{
return $this->close_date;
}
public function setCloseDate(?\DateTimeInterface $close_date): static
{
$this->close_date = $close_date;
return $this;
}
public function getIntroduction(): ?string
{
return $this->introduction;
}
public function setIntroduction(?string $introduction): static
{
$this->introduction = $introduction;
return $this;
}
public function getDateCreated()
{
return $this->date_created;
}
public function setDateCreated($date_created): static
{
$this->date_created = $date_created;
return $this;
}
public function getWebsite(): ?string
{
return $this->website;
}
public function setWebsite(?string $website): static
{
$this->website = $website;
return $this;
}
public function getServiceProviderId(): ?int
{
return $this->service_provider_id;
}
public function setServiceProviderId(?int $service_provider_id): static
{
$this->service_provider_id = $service_provider_id;
return $this;
}
public function getServiceProviderId2(): ?int
{
return $this->service_provider_id_2;
}
public function setServiceProviderId2(?int $service_provider_id_2): static
{
$this->service_provider_id_2 = $service_provider_id_2;
return $this;
}
public function getServiceProviderId3(): ?int
{
return $this->service_provider_id_3;
}
public function setServiceProviderId3(?int $service_provider_id_3): static
{
$this->service_provider_id_3 = $service_provider_id_3;
return $this;
}
public function getServiceProviderId4(): ?int
{
return $this->service_provider_id_4;
}
public function setServiceProviderId4(?int $service_provider_id_4): static
{
$this->service_provider_id_4 = $service_provider_id_4;
return $this;
}
public function getQuestionnaireType(): ?string
{
return $this->questionnaire_type;
}
public function setQuestionnaireType(string $questionnaire_type): static
{
$this->questionnaire_type = $questionnaire_type;
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->setQuestionnaire($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->getQuestionnaire() === $this) {
$schoolEvent->setQuestionnaire(null);
}
}
return $this;
}
}