<?phpnamespace App\Entity;use App\Repository\ProjectSettingsRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;/** * @ORM\Entity(repositoryClass=ProjectSettingsRepository::class) */class ProjectSettings{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer", nullable=true) * @Groups({ * "project.setting.core" * }) */ private $material_budget; /** * @ORM\Column(type="integer", nullable=true) * @Groups({ * "project.setting.core" * }) */ private $timesheet_budget; /** * @ORM\OneToOne(targetEntity=Projects::class, inversedBy="project_settings", cascade={"persist", "remove"}) * @ORM\JoinColumn(nullable=false) */ private $project; /** * @ORM\Column(type="integer") * @Groups({ * "project.setting.core" * }) */ private $target_profit; public function getId(): ?int { return $this->id; } public function getMaterialBudget(): ?int { return $this->material_budget; } public function setMaterialBudget(?int $material_budget): self { $this->material_budget = $material_budget; return $this; } public function getTimesheetBudget(): ?int { return $this->timesheet_budget; } public function setTimesheetBudget(?int $timesheet_budget): self { $this->timesheet_budget = $timesheet_budget; return $this; } public function getProject(): ?Projects { return $this->project; } public function setProject(?Projects $project): self { $this->project = $project; return $this; } public function getTargetProfit(): ?int { return $this->target_profit; } public function setTargetProfit(int $target_profit): self { $this->target_profit = $target_profit; return $this; }}