src/Entity/Students.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StudentsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. /**
  7.  * @ORM\Entity(repositoryClass=StudentsRepository::class)
  8.  */
  9. class Students {
  10.     const STUDENT_HAS_IN_PROGRESS_TEST_NO 0;
  11.     const STUDENT_HAS_IN_PROGRESS_TEST_YES 1;
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=User::class)
  20.      */
  21.     private $user;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=DocumentsTypes::class)
  24.      */
  25.     private $documentType;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $names;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $lastname;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $city;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $address;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $phone;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $campus;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $modality;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $parent;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $parentPhone;
  62.     /**
  63.      * @ORM\Column(type="string", length=50, nullable=true)
  64.      */
  65.     private $documentNumber;
  66.     /**
  67.      * @ORM\Column(type="string", length=255, nullable=true)
  68.      */
  69.     private $eps;
  70.     /**
  71.      * @ORM\Column(type="string", length=255, nullable=true)
  72.      */
  73.     private $email;
  74.     /**
  75.      * @ORM\Column(type="integer", options={"default" : "0"})
  76.      */
  77.     private $hasInProcessTest 0;
  78.     /**
  79.      * @ORM\OneToMany(targetEntity="StudentCourse", mappedBy="student")
  80.      */
  81.     protected $courses;
  82.     public function __construct() {
  83.         $this->courses = new ArrayCollection();
  84.     }
  85.     public function getId(): ?int {
  86.         return $this->id;
  87.     }
  88.     public function getNames(): ?string {
  89.         return $this->names;
  90.     }
  91.     public function setNames(?string $names): self {
  92.         $this->names $names;
  93.         return $this;
  94.     }
  95.     public function getLastname(): ?string {
  96.         return $this->lastname;
  97.     }
  98.     public function setLastname(?string $lastname): self {
  99.         $this->lastname $lastname;
  100.         return $this;
  101.     }
  102.     public function getAddress(): ?string {
  103.         return $this->address;
  104.     }
  105.     public function setAddress(?string $address): self {
  106.         $this->address $address;
  107.         return $this;
  108.     }
  109.     public function getPhone(): ?string {
  110.         return $this->phone;
  111.     }
  112.     public function setPhone(?string $phone): self {
  113.         $this->phone $phone;
  114.         return $this;
  115.     }
  116.     public function getParent(): ?string {
  117.         return $this->parent;
  118.     }
  119.     public function setParent(?string $parent): self {
  120.         $this->parent $parent;
  121.         return $this;
  122.     }
  123.     public function getUser(): ?User {
  124.         return $this->user;
  125.     }
  126.     public function setUser($user) {
  127.         $this->user $user;
  128.     }
  129.     public function getParentPhone(): ?string {
  130.         return $this->parentPhone;
  131.     }
  132.     public function setParentPhone(?string $parentPhone): self {
  133.         $this->parentPhone $parentPhone;
  134.         return $this;
  135.     }
  136.     public function getDocumentNumber(): ?string {
  137.         return $this->documentNumber;
  138.     }
  139.     public function setDocumentNumber(?string $documentNumber): self {
  140.         $this->documentNumber $documentNumber;
  141.         return $this;
  142.     }
  143.     public function getEps(): ?string {
  144.         return $this->eps;
  145.     }
  146.     public function setEps(?string $eps): self {
  147.         $this->eps $eps;
  148.         return $this;
  149.     }
  150.     public function getEmail(): ?string {
  151.         return $this->email;
  152.     }
  153.     public function setEmail(?string $email): self {
  154.         $this->email $email;
  155.         return $this;
  156.     }
  157.     public function getDocumentType(): ?DocumentsTypes {
  158.         return $this->documentType;
  159.     }
  160.     public function setDocumentType($documentType) {
  161.         $this->documentType $documentType;
  162.     }
  163.     public function getCity() {
  164.         return $this->city;
  165.     }
  166.     public function setCity($city) {
  167.         $this->city $city;
  168.     }
  169.     public function getHasInProcessTest() {
  170.         return $this->hasInProcessTest;
  171.     }
  172.     public function setHasInProcessTest($hasFinishedTest): void {
  173.         $this->hasInProcessTest $hasFinishedTest;
  174.     }
  175.     public function __toString() {
  176.         return $this->getNames() . " " $this->getLastname();
  177.     }
  178.     public function getCampus() {
  179.         return $this->campus;
  180.     }
  181.     public function getModality() {
  182.         return $this->modality;
  183.     }
  184.     public function setCampus($campus): void {
  185.         $this->campus $campus;
  186.     }
  187.     public function setModality($modality): void {
  188.         $this->modality $modality;
  189.     }
  190.     public function getCourses() {
  191.         return $this->courses;
  192.     }
  193.     public function setCourses($courses): void {
  194.         $this->courses $courses;
  195.     }
  196. }