<?php
namespace App\Entity;
use DateTimeImmutable;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\SchoolTeacherCallSheetLineRepository;
/**
* @ORM\Entity(repositoryClass=SchoolTeacherCallSheetLineRepository::class)
*/
class SchoolTeacherCallSheetLine
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=SchoolTeacherCallSheet::class, inversedBy="schoolTeacherCallSheetLines")
* @ORM\JoinColumn(nullable=false)
*/
private $schoolTeacherCallSheet;
/**
* @ORM\ManyToOne(targetEntity=Establishment::class, inversedBy="schoolTeacherCallSheetLines")
* @ORM\JoinColumn(nullable=false)
*/
private $establishment;
/**
* @ORM\ManyToOne(targetEntity=SchoolYear::class, inversedBy="schoolTeacherCallSheetLines")
* @ORM\JoinColumn(nullable=false)
*/
private $schoolYear;
/**
* @ORM\ManyToOne(targetEntity=RegistrationStudentRegistration::class, inversedBy="schoolTeacherCallSheetLines")
* @ORM\JoinColumn(nullable=false)
*/
private $registrationStudentRegistration;
/**
* @ORM\Column(type="boolean")
*/
private $is_presente;
/**
* @ORM\Column(type="boolean")
*/
private $is_absent;
/**
* @ORM\Column(type="string", length=60)
*/
private $day;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $create_date;
/**
* @ORM\Column(type="string", length=60)
*/
private $create_time;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $created_at;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $updated_at;
/**
* @ORM\Column(type="integer")
*/
private $created_by;
/**
* @ORM\Column(type="integer")
*/
private $updated_by;
public function __construct()
{
$this->create_date = new DateTimeImmutable();
$this->is_presente = false;
$this->is_absent = false;
}
public function getId(): ?int
{
return $this->id;
}
public function getSchoolTeacherCallSheet(): ?SchoolTeacherCallSheet
{
return $this->schoolTeacherCallSheet;
}
public function setSchoolTeacherCallSheet(?SchoolTeacherCallSheet $schoolTeacherCallSheet): self
{
$this->schoolTeacherCallSheet = $schoolTeacherCallSheet;
return $this;
}
public function getEstablishment(): ?Establishment
{
return $this->establishment;
}
public function setEstablishment(?Establishment $establishment): self
{
$this->establishment = $establishment;
return $this;
}
public function getSchoolYear(): ?SchoolYear
{
return $this->schoolYear;
}
public function setSchoolYear(?SchoolYear $schoolYear): self
{
$this->schoolYear = $schoolYear;
return $this;
}
public function getRegistrationStudentRegistration(): ?RegistrationStudentRegistration
{
return $this->registrationStudentRegistration;
}
public function setRegistrationStudentRegistration(?RegistrationStudentRegistration $registrationStudentRegistration): self
{
$this->registrationStudentRegistration = $registrationStudentRegistration;
return $this;
}
public function getIsPresente(): ?bool
{
return $this->is_presente;
}
public function setIsPresente(bool $is_presente): self
{
$this->is_presente = $is_presente;
return $this;
}
public function getIsAbsent(): ?bool
{
return $this->is_absent;
}
public function setIsAbsent(bool $is_absent): self
{
$this->is_absent = $is_absent;
return $this;
}
public function getDay(): ?string
{
return $this->day;
}
public function setDay(string $day): self
{
$this->day = $day;
return $this;
}
public function getCreateDate(): ?\DateTimeImmutable
{
return $this->create_date;
}
public function setCreateDate(\DateTimeImmutable $create_date): self
{
$this->create_date = $create_date;
return $this;
}
public function getCreateTime(): ?string
{
return $this->create_time;
}
public function setCreateTime(string $create_time): self
{
$this->create_time = $create_time;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeImmutable $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updated_at;
}
public function setUpdatedAt(\DateTimeImmutable $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
public function getCreatedBy(): ?int
{
return $this->created_by;
}
public function setCreatedBy(int $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getUpdatedBy(): ?int
{
return $this->updated_by;
}
public function setUpdatedBy(int $updated_by): self
{
$this->updated_by = $updated_by;
return $this;
}
}