src/Entity/FlowAction.php line 22
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use ApiPlatform\Metadata\Get;use ApiPlatform\Metadata\GetCollection;use App\Repository\FlowActionRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;#[ORM\Entity(repositoryClass: FlowActionRepository::class)]#[ApiResource(operations: [new GetCollection(),new Get(normalizationContext: ['groups' => ['flow:list', 'flow:view']]),],normalizationContext: ['groups' => ['flow:list']])]class FlowAction{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]#[Groups(['flow:list'])]private ?int $id = null;#[ORM\Column(length: 255)]#[Groups(['flow:list'])]private ?string $name = null;#[ORM\Column(length: 255, nullable: true)]#[Groups(['flow:list'])]private ?string $icon = null;#[ORM\Column(length: 255)]#[Groups(['flow:list'])]private ?string $action = null;#[ORM\ManyToOne(inversedBy: 'flowActions')]#[ORM\JoinColumn(nullable: false)]private ?FlowStep $step = null;public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getIcon(): ?string{return $this->icon;}public function setIcon(?string $icon): self{$this->icon = $icon;return $this;}public function getAction(): ?string{return $this->action;}public function setAction(string $action): self{$this->action = $action;return $this;}public function getStep(): ?FlowStep{return $this->step;}public function setStep(?FlowStep $step): self{$this->step = $step;return $this;}}