<?php
namespace App\Entity;
use App\Repository\CampusKeyFigureRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CampusKeyFigureRepository::class)]
class CampusKeyFigure
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'text')]
private ?string $title = null;
#[ORM\Column(type: 'smallint')]
private ?int $percent = null;
#[ORM\ManyToOne(targetEntity: Campus::class, inversedBy: 'keyFigures')]
#[ORM\JoinColumn(nullable: false)]
private ?\App\Entity\Campus $campus = null;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getPercent(): ?int
{
return $this->percent;
}
public function setPercent(int $percent): self
{
$this->percent = $percent;
return $this;
}
public function getCampus(): ?Campus
{
return $this->campus;
}
public function setCampus(?Campus $campus): self
{
$this->campus = $campus;
return $this;
}
}