File: /var/www/dvpis2026/dvpis.kaunokolegija.lt/src/Entity/Poll/Summary.php
<?php
namespace App\Entity\Poll;
use App\Entity\Lecturer;
use App\Repository\Poll\SummaryRepository;
use DateTime;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* Summary
*/
#[ORM\Table(name: 'poll_summary')]
#[ORM\Entity(repositoryClass: SummaryRepository::class)]
class Summary
{
#[ORM\Column]
#[ORM\Id]
#[ORM\GeneratedValue]
private ?int $id = null;
/**
* @var string
*/
#[ORM\Column(name: 'lecturer_activity', type: 'text')]
private $lecturerActivity;
/**
* @var string
*/
#[ORM\Column(name: 'research_activity', type: 'text')]
private $researchActivity;
/**
* @var string
*/
#[ORM\Column(name: 'methodic_activity', type: 'text')]
private $methodicActivity;
/**
* @var string
*/
#[ORM\Column(name: 'competency_activity', type: 'text')]
private $competencyActivity;
/**
* @var string
*/
#[ORM\Column(name: 'lecturer_activity_review', type: 'text')]
private $lecturerActivityReview;
/**
* @var string
*/
#[ORM\Column(name: 'research_activity_review', type: 'text')]
private $researchActivityReview;
/**
* @var string
*/
#[ORM\Column(name: 'methodic_activity_review', type: 'text')]
private $methodicActivityReview;
/**
* @var string
*/
#[ORM\Column(name: 'competency_activity_review', type: 'text')]
private $competencyActivityReview;
/**
* @var DateTime
*/
#[ORM\Column(name: 'date_completed', type: 'datetime', nullable: true)]
private $dateCompleted;
/**
* @var DateTime
*/
#[ORM\Column(name: 'date_completed_review', type: 'datetime', nullable: true)]
private $dateCompletedReview;
#[ORM\JoinColumn(name: 'lecturer_id', referencedColumnName: 'id', nullable: false)]
#[ORM\ManyToOne(targetEntity: Lecturer::class, inversedBy: 'summaries')]
private ?Lecturer $lecturer;
/**
* @var string
*/
#[ORM\Column(name: 'review_user_name', type: 'string', length: 255, nullable: true)]
private $reviewUserName;
public function getId(): ?int
{
return $this->id;
}
public function setLecturerActivity(string $lecturerActivity): static
{
$this->lecturerActivity = $lecturerActivity;
return $this;
}
public function getLecturerActivity(): ?string
{
return $this->lecturerActivity;
}
public function setResearchActivity(string $researchActivity): static
{
$this->researchActivity = $researchActivity;
return $this;
}
public function getResearchActivity(): ?string
{
return $this->researchActivity;
}
public function setMethodicActivity(string $methodicActivity): static
{
$this->methodicActivity = $methodicActivity;
return $this;
}
public function getMethodicActivity(): ?string
{
return $this->methodicActivity;
}
public function setCompetencyActivity(string $competencyActivity): static
{
$this->competencyActivity = $competencyActivity;
return $this;
}
public function getCompetencyActivity(): ?string
{
return $this->competencyActivity;
}
public function setLecturerActivityReview(string $lecturerActivityReview): static
{
$this->lecturerActivityReview = $lecturerActivityReview;
return $this;
}
public function getLecturerActivityReview(): ?string
{
return $this->lecturerActivityReview;
}
public function setResearchActivityReview(string $researchActivityReview): static
{
$this->researchActivityReview = $researchActivityReview;
return $this;
}
public function getResearchActivityReview(): ?string
{
return $this->researchActivityReview;
}
public function setMethodicActivityReview(string $methodicActivityReview): static
{
$this->methodicActivityReview = $methodicActivityReview;
return $this;
}
public function getMethodicActivityReview(): ?string
{
return $this->methodicActivityReview;
}
public function setCompetencyActivityReview(string $competencyActivityReview): static
{
$this->competencyActivityReview = $competencyActivityReview;
return $this;
}
public function getCompetencyActivityReview(): ?string
{
return $this->competencyActivityReview;
}
public function getDateCompleted(): ?\DateTimeInterface
{
return $this->dateCompleted;
}
public function getLecturer(): ?Lecturer
{
return $this->lecturer;
}
public function setDateCompleted(?\DateTimeInterface $dateCompleted): static
{
$this->dateCompleted = $dateCompleted;
return $this;
}
public function setLecturer(?Lecturer $lecturer): static
{
$this->lecturer = $lecturer;
return $this;
}
public function getDateCompletedReview(): ?\DateTimeInterface
{
return $this->dateCompletedReview;
}
public function setDateCompletedReview(?\DateTimeInterface $dateCompletedReview): static
{
$this->dateCompletedReview = $dateCompletedReview;
return $this;
}
public function getReviewUserName(): ?string
{
return $this->reviewUserName;
}
public function setReviewUserName(?string $reviewUserName): static
{
$this->reviewUserName = $reviewUserName;
return $this;
}
// ALTER TABLE poll_summary ADD review_user_name VARCHAR(255) DEFAULT NULL;
}