<?php
namespace App\Entity;
use App\Repository\StudentsRepository;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity(repositoryClass=StudentsRepository::class)
*/
class Students {
const STUDENT_HAS_IN_PROGRESS_TEST_NO = 0;
const STUDENT_HAS_IN_PROGRESS_TEST_YES = 1;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=User::class)
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity=DocumentsTypes::class)
*/
private $documentType;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $names;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $lastname;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $city;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $address;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $phone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $campus;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $modality;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $parent;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $parentPhone;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $documentNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $eps;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @ORM\Column(type="integer", options={"default" : "0"})
*/
private $hasInProcessTest = 0;
/**
* @ORM\OneToMany(targetEntity="StudentCourse", mappedBy="student")
*/
protected $courses;
public function __construct() {
$this->courses = new ArrayCollection();
}
public function getId(): ?int {
return $this->id;
}
public function getNames(): ?string {
return $this->names;
}
public function setNames(?string $names): self {
$this->names = $names;
return $this;
}
public function getLastname(): ?string {
return $this->lastname;
}
public function setLastname(?string $lastname): self {
$this->lastname = $lastname;
return $this;
}
public function getAddress(): ?string {
return $this->address;
}
public function setAddress(?string $address): self {
$this->address = $address;
return $this;
}
public function getPhone(): ?string {
return $this->phone;
}
public function setPhone(?string $phone): self {
$this->phone = $phone;
return $this;
}
public function getParent(): ?string {
return $this->parent;
}
public function setParent(?string $parent): self {
$this->parent = $parent;
return $this;
}
public function getUser(): ?User {
return $this->user;
}
public function setUser($user) {
$this->user = $user;
}
public function getParentPhone(): ?string {
return $this->parentPhone;
}
public function setParentPhone(?string $parentPhone): self {
$this->parentPhone = $parentPhone;
return $this;
}
public function getDocumentNumber(): ?string {
return $this->documentNumber;
}
public function setDocumentNumber(?string $documentNumber): self {
$this->documentNumber = $documentNumber;
return $this;
}
public function getEps(): ?string {
return $this->eps;
}
public function setEps(?string $eps): self {
$this->eps = $eps;
return $this;
}
public function getEmail(): ?string {
return $this->email;
}
public function setEmail(?string $email): self {
$this->email = $email;
return $this;
}
public function getDocumentType(): ?DocumentsTypes {
return $this->documentType;
}
public function setDocumentType($documentType) {
$this->documentType = $documentType;
}
public function getCity() {
return $this->city;
}
public function setCity($city) {
$this->city = $city;
}
public function getHasInProcessTest() {
return $this->hasInProcessTest;
}
public function setHasInProcessTest($hasFinishedTest): void {
$this->hasInProcessTest = $hasFinishedTest;
}
public function __toString() {
return $this->getNames() . " " . $this->getLastname();
}
public function getCampus() {
return $this->campus;
}
public function getModality() {
return $this->modality;
}
public function setCampus($campus): void {
$this->campus = $campus;
}
public function setModality($modality): void {
$this->modality = $modality;
}
public function getCourses() {
return $this->courses;
}
public function setCourses($courses): void {
$this->courses = $courses;
}
}