vendor/easycorp/easyadmin-bundle/src/Dto/BatchActionDto.php line 16

  1. <?php
  2. namespace EasyCorp\Bundle\EasyAdminBundle\Dto;
  3. /**
  4.  * @author Javier Eguiluz <javier.eguiluz@gmail.com>
  5.  */
  6. class BatchActionDto
  7. {
  8.     private string $name;
  9.     private array $entityIds;
  10.     private string $entityFqcn;
  11.     private string $referrerUrl;
  12.     private string $csrfToken;
  13.     public function __construct(string $name, array $entityIdsstring $entityFqcnstring $referrerUrlstring $csrfToken)
  14.     {
  15.         $this->name $name;
  16.         $this->entityIds $entityIds;
  17.         $this->entityFqcn $entityFqcn;
  18.         $this->referrerUrl $referrerUrl;
  19.         $this->csrfToken $csrfToken;
  20.     }
  21.     public function getName(): string
  22.     {
  23.         return $this->name;
  24.     }
  25.     public function getEntityIds(): array
  26.     {
  27.         return $this->entityIds;
  28.     }
  29.     public function getEntityFqcn(): string
  30.     {
  31.         return $this->entityFqcn;
  32.     }
  33.     public function getReferrerUrl(): string
  34.     {
  35.         return $this->referrerUrl;
  36.     }
  37.     public function getCsrfToken(): string
  38.     {
  39.         return $this->csrfToken;
  40.     }
  41. }