<?php
namespace App\Entity\User;
use App\Repository\User\StrateRepository;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Serializer\Annotation\SerializedName;
/**
* @ORM\Entity(repositoryClass=StrateRepository::class)
* @ApiResource(
* collectionOperations={
* "get",
* },
* )
*/
class Strate
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({"User:io"})
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Groups({"User:io"})
*/
private $label;
/**
* @ORM\Column(type="integer", nullable=true)
* @SerializedName("nb_to_reach")
* @Groups({"User:io"})
*/
private $nbToReach;
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 getNbToReach(): ?int
{
return $this->nbToReach;
}
public function setNbToReach(?int $nbToReach): self
{
$this->nbToReach = $nbToReach;
return $this;
}
}