<?php
namespace App\Entity\Core;
use App\Entity\Core\Classroom\ClassroomType;
use DateTime;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table('institution')]
#[ORM\Entity(repositoryClass: InstitutionRepository::class)]
class Institution
{
/**
* @var int
*/
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;
/**
* @var string
*/
#[ORM\Column(name: 'name', type: 'text')]
private $name;
/**
* @var bool
*/
#[ORM\Column(type: 'boolean', nullable: true)]
private $customer;
/**
* @var bool
*/
#[ORM\Column(type: 'boolean', nullable: true)]
private $payingCustomer;
/**
* @var bool
*/
#[ORM\Column(type: 'boolean', nullable: true)]
private $hasRenewed;
#[ORM\Column(name: 'uni_instnr', type: 'text', nullable: true, options: ['default' => null])]
private ?string $instnr = null;
/**
* @var DateTime
*/
#[ORM\Column(name: 'expiration_basis', type: 'datetime', nullable: true)]
private $expirationBasis;
/**
* @var DateTime
*/
#[ORM\Column(name: 'expiration_self_study', type: 'datetime', nullable: true)]
private $expirationSelfStudy;
/**
* @var DateTime
*/
#[ORM\Column(name: 'expiration_textbook', type: 'datetime', nullable: true)]
private $expirationTextbook;
/**
* @var ArrayCollection|ClassroomType[]
*/
#[ORM\JoinTable(name: 'relation_institution_classroom_types')]
#[ORM\JoinColumn(name: 'institution', referencedColumnName: 'id')]
#[ORM\InverseJoinColumn(name: 'classroom_type', referencedColumnName: 'id')]
#[ORM\ManyToMany(targetEntity: ClassroomType::class)]
private $classroomTypes;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @param int $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
public function getInstnr(): ?string
{
return $this->instnr;
}
public function setInstnr(?string $instnr)
{
$this->instnr = $instnr;
}
public function isCustomer(): ?bool
{
return $this->customer;
}
public function setCustomer(bool $customer)
{
$this->customer = $customer;
}
/**
* @return bool
*/
public function isPayingCustomer(): ?bool
{
return $this->payingCustomer;
}
public function setPayingCustomer(bool $payingCustomer): void
{
$this->payingCustomer = $payingCustomer;
}
/**
* @return bool
*/
public function hasRenewed(): ?bool
{
return $this->hasRenewed;
}
public function setHasRenewed(bool $hasRenewed): void
{
$this->hasRenewed = $hasRenewed;
}
/**
* @return ClassroomType[]|ArrayCollection
*/
public function getClassroomTypes()
{
return $this->classroomTypes;
}
/**
* @param ClassroomType[]|ArrayCollection $classroomTypes
*/
public function setClassroomTypes($classroomTypes): void
{
$this->classroomTypes = $classroomTypes;
}
public function getExpirationBasis(): ?DateTime
{
return $this->expirationBasis;
}
public function setExpirationBasis(?DateTime $expirationBasis): void
{
$this->expirationBasis = $expirationBasis;
}
public function getExpirationSelfStudy(): ?DateTime
{
return $this->expirationSelfStudy;
}
public function setExpirationSelfStudy(?DateTime $expirationSelfStudy): void
{
$this->expirationSelfStudy = $expirationSelfStudy;
}
public function getExpirationTextbook(): ?DateTime
{
return $this->expirationTextbook;
}
public function setExpirationTextbook(?DateTime $expirationTextbook): void
{
$this->expirationTextbook = $expirationTextbook;
}
}