<?phpnamespace App\Entity;use App\Repository\ObjectiveTargetScoreRepository;use App\Traits\DateTrait;use Doctrine\ORM\Mapping as ORM;use JMS\Serializer\Annotation as Serializer;use JMS\Serializer\Annotation\Expose;use JMS\Serializer\Annotation\Groups;/** * @ORM\Entity(repositoryClass=ObjectiveTargetScoreRepository::class) * @ORM\HasLifecycleCallbacks() * @Serializer\ExclusionPolicy("ALL") */class ObjectiveTargetScore{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * * @Expose * @Groups({"objective_target_score"}) */ private ?int $id = null; /** * @ORM\Column(type="string", nullable=true) * * @Expose * @Groups({"objective_target_score"}) */ private ?string $label = null; /** * @ORM\ManyToOne(targetEntity=ObjectiveTarget::class, inversedBy="objectiveTargetScores") * @ORM\JoinColumn(nullable=false) * * @Expose * @Groups({"objective_target_score"}) */ private ?ObjectiveTarget $objectiveTarget = null; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="objectiveTargetScores") * @ORM\JoinColumn(nullable=false) * * @Expose * @Groups({"objective_target_score"}) */ private ?User $user = null; /** * @ORM\Column(type="float") * * @Expose * @Groups({"objective_target_score"}) */ private ?float $completionValue = null; /** * @ORM\ManyToOne(targetEntity=ObjectiveTargetStep::class, inversedBy="objectiveTargetScores") * * @Expose * @Groups({"objective_target_score"}) */ private ?ObjectiveTargetStep $objectiveTargetStep = null; use DateTrait; public function __construct() { } public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getObjectiveTarget(): ?ObjectiveTarget { return $this->objectiveTarget; } public function setObjectiveTarget(?ObjectiveTarget $objectiveTarget): self { $this->objectiveTarget = $objectiveTarget; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getCompletionValue(): ?float { return $this->completionValue; } public function setCompletionValue(float $completionValue): self { $this->completionValue = $completionValue; return $this; } public function getObjectiveTargetStep(): ?ObjectiveTargetStep { return $this->objectiveTargetStep; } public function setObjectiveTargetStep(?ObjectiveTargetStep $objectiveTargetStep): self { $this->objectiveTargetStep = $objectiveTargetStep; return $this; }}