src/DTO/Export/Request/ExportRequestDTO.php line 10

Open in your IDE?
  1. <?php
  2. namespace Harmonizely\DTO\Export\Request;
  3. use Harmonizely\Core\Serializer\Contract\ISerializableObject;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. class ExportRequestDTO implements ISerializableObject
  6. {
  7.     /**
  8.      * @var int|null
  9.      */
  10.     private ?int $id;
  11.     /**
  12.      * @Assert\Choice(callback={"Harmonizely\Types\Company\ExportType", "getTypes"})
  13.      * @var string|null
  14.      */
  15.     private ?string $type;
  16.     /**
  17.      * @return int|null
  18.      */
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     /**
  24.      * @return string|null
  25.      */
  26.     public function getType(): ?string
  27.     {
  28.         return $this->type;
  29.     }
  30. }