File: /var/www/dvpis2025/dvpis.kaunokolegija.lt/src/Entity/StudentCountProgramPlan.php
<?php
namespace App\Entity;
use DateTime;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\UniqueConstraint;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* StudentCountProgramPlan
*/
#[ORM\Table(name: 'student_count_program_plan')]
#[UniqueConstraint(name: 'unique_idx', columns: ['studies_program_id', 'course'])]
#[ORM\Entity(repositoryClass: \App\Repository\StudentCountProgramPlanRepository::class)]
#[UniqueEntity(fields: ['studiesProgram', 'course'], errorPath: 'course', message: 'Duplicate')]
class StudentCountProgramPlan
{
#[ORM\Column]
#[ORM\Id]
#[ORM\GeneratedValue]
private ?int $id = null;
/**
* @var int
*/
#[ORM\Column(name: 'count_student_nl', type: 'integer', nullable: true)]
private $countStudentNl;
/**
* @var int
*/
#[ORM\Column(name: 'count_student_i', type: 'integer', nullable: true)]
private $countStudentI;
/**
* @var int
*/
#[ORM\Column(name: 'count_student_part', type: 'integer', nullable: true)]
private $countStudentPart;
/**
* @var int
*/
#[ORM\Column(name: 'count_listener', type: 'integer', nullable: true)]
private $countListener;
/**
* @var DateTime
*/
#[ORM\Column(name: 'data_date', type: 'date', nullable: true)]
private $dataDate;
#[ORM\JoinColumn(name: 'studies_program_id', referencedColumnName: 'id', nullable: false)]
#[ORM\ManyToOne(targetEntity: StudiesProgram::class, inversedBy: 'studentCountProgramPlan')]
private ?StudiesProgram $studiesProgram;
/**
* @var int
*/
#[ORM\Column(name: 'course', type: 'integer')]
private $course;
public function getId(): ?int
{
return $this->id;
}
public function getStudiesProgram(): ?StudiesProgram
{
return $this->studiesProgram;
}
public function getCourse(): ?int
{
return $this->course;
}
public function setStudiesProgram(?StudiesProgram $studiesProgram): static
{
$this->studiesProgram = $studiesProgram;
return $this;
}
public function setCourse(int $course): static
{
$this->course = $course;
return $this;
}
public function setCountStudentNl(?int $countStudentNl): static
{
$this->countStudentNl = $countStudentNl;
return $this;
}
public function getCountStudentNl(): ?int
{
return $this->countStudentNl;
}
public function setCountStudentI(?int $countStudentI): static
{
$this->countStudentI = $countStudentI;
return $this;
}
public function getCountStudentI(): ?int
{
return $this->countStudentI;
}
public function setCountStudentPart(?int $countStudentPart): static
{
$this->countStudentPart = $countStudentPart;
return $this;
}
public function getCountStudentPart(): ?int
{
return $this->countStudentPart;
}
public function setCountListener(?int $countListener): static
{
$this->countListener = $countListener;
return $this;
}
public function getCountListener(): ?int
{
return $this->countListener;
}
public function setDataDate(?\DateTimeInterface $dataDate): static
{
$this->dataDate = $dataDate;
return $this;
}
public function getDataDate(): ?\DateTimeInterface
{
return $this->dataDate;
}
}