src/Entity/ProjectSettings.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectSettingsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProjectSettingsRepository::class)
  8.  */
  9. class ProjectSettings
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="integer", nullable=true)
  19.      * @Groups({
  20.      *     "project.setting.core"
  21.      * })
  22.      */
  23.     private $material_budget;
  24.     /**
  25.      * @ORM\Column(type="integer", nullable=true)
  26.      * @Groups({
  27.      *      "project.setting.core"
  28.      *  })
  29.      */
  30.     private $timesheet_budget;
  31.     /**
  32.      * @ORM\OneToOne(targetEntity=Projects::class, inversedBy="project_settings", cascade={"persist", "remove"})
  33.      * @ORM\JoinColumn(nullable=false)
  34.      */
  35.     private $project;
  36.     /**
  37.      * @ORM\Column(type="integer")
  38.      * @Groups({
  39.      *      "project.setting.core"
  40.      *  })
  41.      */
  42.     private $target_profit;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getMaterialBudget(): ?int
  48.     {
  49.         return $this->material_budget;
  50.     }
  51.     public function setMaterialBudget(?int $material_budget): self
  52.     {
  53.         $this->material_budget $material_budget;
  54.         return $this;
  55.     }
  56.     public function getTimesheetBudget(): ?int
  57.     {
  58.         return $this->timesheet_budget;
  59.     }
  60.     public function setTimesheetBudget(?int $timesheet_budget): self
  61.     {
  62.         $this->timesheet_budget $timesheet_budget;
  63.         return $this;
  64.     }
  65.     public function getProject(): ?Projects
  66.     {
  67.         return $this->project;
  68.     }
  69.     public function setProject(?Projects $project): self
  70.     {
  71.         $this->project $project;
  72.         return $this;
  73.     }
  74.     public function getTargetProfit(): ?int
  75.     {
  76.         return $this->target_profit;
  77.     }
  78.     public function setTargetProfit(int $target_profit): self
  79.     {
  80.         $this->target_profit $target_profit;
  81.         return $this;
  82.     }
  83. }