src/Entity/SchoolTeacherCallSheetLine.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTimeImmutable;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\SchoolTeacherCallSheetLineRepository;
  6. /**
  7.  * @ORM\Entity(repositoryClass=SchoolTeacherCallSheetLineRepository::class)
  8.  */
  9. class SchoolTeacherCallSheetLine
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=SchoolTeacherCallSheet::class, inversedBy="schoolTeacherCallSheetLines")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $schoolTeacherCallSheet;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Establishment::class, inversedBy="schoolTeacherCallSheetLines")
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $establishment;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=SchoolYear::class, inversedBy="schoolTeacherCallSheetLines")
  29.      * @ORM\JoinColumn(nullable=false)
  30.      */
  31.     private $schoolYear;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=RegistrationStudentRegistration::class, inversedBy="schoolTeacherCallSheetLines")
  34.      * @ORM\JoinColumn(nullable=false)
  35.      */
  36.     private $registrationStudentRegistration;
  37.     /**
  38.      * @ORM\Column(type="boolean")
  39.     */
  40.     private $is_presente;
  41.     /**
  42.      * @ORM\Column(type="boolean")
  43.     */
  44.     private $is_absent;
  45.     /**
  46.      * @ORM\Column(type="string", length=60)
  47.     */
  48.     private $day;
  49.     /**
  50.      * @ORM\Column(type="datetime_immutable")
  51.     */
  52.     private $create_date;
  53.     /**
  54.      * @ORM\Column(type="string", length=60)
  55.     */
  56.     private $create_time;
  57.     /**
  58.      * @ORM\Column(type="datetime_immutable")
  59.     */
  60.     private $created_at;
  61.     /**
  62.      * @ORM\Column(type="datetime_immutable")
  63.      */
  64.     private $updated_at;
  65.     /**
  66.      * @ORM\Column(type="integer")
  67.      */
  68.     private $created_by;
  69.     /**
  70.      * @ORM\Column(type="integer")
  71.      */
  72.     private $updated_by;
  73.     public function __construct()
  74.     {
  75.         $this->create_date = new DateTimeImmutable();
  76.         $this->is_presente false;
  77.         $this->is_absent false;
  78.     }
  79.     public function getId(): ?int
  80.     {
  81.         return $this->id;
  82.     }
  83.     public function getSchoolTeacherCallSheet(): ?SchoolTeacherCallSheet
  84.     {
  85.         return $this->schoolTeacherCallSheet;
  86.     }
  87.     public function setSchoolTeacherCallSheet(?SchoolTeacherCallSheet $schoolTeacherCallSheet): self
  88.     {
  89.         $this->schoolTeacherCallSheet $schoolTeacherCallSheet;
  90.         return $this;
  91.     }
  92.     public function getEstablishment(): ?Establishment
  93.     {
  94.         return $this->establishment;
  95.     }
  96.     public function setEstablishment(?Establishment $establishment): self
  97.     {
  98.         $this->establishment $establishment;
  99.         return $this;
  100.     }
  101.     public function getSchoolYear(): ?SchoolYear
  102.     {
  103.         return $this->schoolYear;
  104.     }
  105.     public function setSchoolYear(?SchoolYear $schoolYear): self
  106.     {
  107.         $this->schoolYear $schoolYear;
  108.         return $this;
  109.     }
  110.     public function getRegistrationStudentRegistration(): ?RegistrationStudentRegistration
  111.     {
  112.         return $this->registrationStudentRegistration;
  113.     }
  114.     public function setRegistrationStudentRegistration(?RegistrationStudentRegistration $registrationStudentRegistration): self
  115.     {
  116.         $this->registrationStudentRegistration $registrationStudentRegistration;
  117.         return $this;
  118.     }
  119.     public function getIsPresente(): ?bool
  120.     {
  121.         return $this->is_presente;
  122.     }
  123.     public function setIsPresente(bool $is_presente): self
  124.     {
  125.         $this->is_presente $is_presente;
  126.         return $this;
  127.     }
  128.     public function getIsAbsent(): ?bool
  129.     {
  130.         return $this->is_absent;
  131.     }
  132.     public function setIsAbsent(bool $is_absent): self
  133.     {
  134.         $this->is_absent $is_absent;
  135.         return $this;
  136.     }
  137.     public function getDay(): ?string
  138.     {
  139.         return $this->day;
  140.     }
  141.     public function setDay(string $day): self
  142.     {
  143.         $this->day $day;
  144.         return $this;
  145.     }
  146.     public function getCreateDate(): ?\DateTimeImmutable
  147.     {
  148.         return $this->create_date;
  149.     }
  150.     public function setCreateDate(\DateTimeImmutable $create_date): self
  151.     {
  152.         $this->create_date $create_date;
  153.         return $this;
  154.     }
  155.     public function getCreateTime(): ?string
  156.     {
  157.         return $this->create_time;
  158.     }
  159.     public function setCreateTime(string $create_time): self
  160.     {
  161.         $this->create_time $create_time;
  162.         return $this;
  163.     }
  164.     public function getCreatedAt(): ?\DateTimeImmutable
  165.     {
  166.         return $this->created_at;
  167.     }
  168.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  169.     {
  170.         $this->created_at $created_at;
  171.         return $this;
  172.     }
  173.     public function getUpdatedAt(): ?\DateTimeImmutable
  174.     {
  175.         return $this->updated_at;
  176.     }
  177.     public function setUpdatedAt(\DateTimeImmutable $updated_at): self
  178.     {
  179.         $this->updated_at $updated_at;
  180.         return $this;
  181.     }
  182.     public function getCreatedBy(): ?int
  183.     {
  184.         return $this->created_by;
  185.     }
  186.     public function setCreatedBy(int $created_by): self
  187.     {
  188.         $this->created_by $created_by;
  189.         return $this;
  190.     }
  191.     public function getUpdatedBy(): ?int
  192.     {
  193.         return $this->updated_by;
  194.     }
  195.     public function setUpdatedBy(int $updated_by): self
  196.     {
  197.         $this->updated_by $updated_by;
  198.         return $this;
  199.     }
  200. }