src/Entity/Participation/ValidationExport.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Participation;
  3. use App\Repository\Participation\ValidationExportRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Gedmo\Timestampable\Traits\TimestampableEntity;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. use Symfony\Component\Serializer\Annotation\SerializedName;
  9. /**
  10.  * @ORM\Entity(repositoryClass=ValidationExportRepository::class)
  11.  * @Gedmo\Loggable
  12.  */
  13. class ValidationExport
  14. {
  15.     const STATUS_NEW 'new';
  16.     const STATUS_WAIT_FOR_VALIDATION 'waitForValidation';
  17.     const STATUS_VALIDATION_DONE 'validationDone';
  18.     /**
  19.      * Hook timestampable behavior
  20.      * updates createdAt, updatedAt fields
  21.      */
  22.     use TimestampableEntity;
  23.     /**
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue
  26.      * @ORM\Column(type="integer")
  27.      */
  28.     private $id;
  29.     /**
  30.      * @ORM\Column(type="string", length=30)
  31.      * @Gedmo\Versioned
  32.      * @Groups({
  33.      *     "ParticipationOdr:io",
  34.      *     "ParticipationMulti:io",
  35.      *     "get_participation_odrs_by_id",
  36.      * })
  37.      */
  38.     private $status self::STATUS_NEW;
  39.     /**
  40.      * @ORM\Column(type="string", length=30, nullable=true)
  41.      * @Gedmo\Versioned
  42.      * @Groups({
  43.      *     "ParticipationOdr:io",
  44.      *     "ParticipationMulti:io",
  45.      *     "get_participation_odrs_by_id",
  46.      * })
  47.      */
  48.     private $conformityType;
  49.     /**
  50.      * @ORM\Column(type="json", nullable=true)
  51.      * @Gedmo\Versioned
  52.      * @SerializedName("conformity_message")
  53.      * @Groups({
  54.      *     "ParticipationOdr:io",
  55.      *     "ParticipationMulti:io",
  56.      *     "get_participation_odrs_by_id",
  57.      * })
  58.      */
  59.     private $conformityMesssage = [];
  60.     /**
  61.      * @ORM\Column(type="boolean", nullable=true)
  62.      * @Gedmo\Versioned
  63.      * @Groups({
  64.      *     "ParticipationOdr:io",
  65.      *     "ParticipationMulti:io",
  66.      *     "get_participation_odrs_by_id",
  67.      * })
  68.      */
  69.     private $conform;
  70.     /**
  71.      * @ORM\Column(type="string", length=30)
  72.      * @SerializedName("participation_id")
  73.      * @Groups({
  74.      *     "ParticipationStep:io",
  75.      *     "get_participation-steps_by_user",
  76.      *     "ParticipationOdr:io",
  77.      *     "ParticipationMulti:io",
  78.      *     "get_participation_odrs_by_id",
  79.      *     "get_participation_multi_odr_by_id",
  80.      * })
  81.      */
  82.     private $APIParticpationId;
  83.     public function getId(): ?int
  84.     {
  85.         return $this->id;
  86.     }
  87.     public function getStatus(): ?string
  88.     {
  89.         return $this->status;
  90.     }
  91.     public function setStatus(string $status): self
  92.     {
  93.         $this->status $status;
  94.         return $this;
  95.     }
  96.     public function getConformityType(): ?string
  97.     {
  98.         return $this->conformityType;
  99.     }
  100.     public function setConformityType(?string $conformityType): self
  101.     {
  102.         $this->conformityType $conformityType;
  103.         return $this;
  104.     }
  105.     public function getConformityMesssage(): ?array
  106.     {
  107.         return $this->conformityMesssage;
  108.     }
  109.     public function setConformityMesssage(?array $conformityMesssage): self
  110.     {
  111.         $this->conformityMesssage $conformityMesssage;
  112.         return $this;
  113.     }
  114.     public function getConform(): ?bool
  115.     {
  116.         return $this->conform;
  117.     }
  118.     public function isConform(): bool
  119.     {
  120.         return (bool)$this->conform;
  121.     }
  122.     public function setConform(?bool $conform): self
  123.     {
  124.         $this->conform $conform;
  125.         return $this;
  126.     }
  127.     public function getAPIParticpationId(): ?string
  128.     {
  129.         return $this->APIParticpationId;
  130.     }
  131.     public function setAPIParticpationId(string $APIParticpationId): self
  132.     {
  133.         $this->APIParticpationId $APIParticpationId;
  134.         return $this;
  135.     }
  136. }