src/Model/Params/Params.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Model\Params;
  3. use ApiPlatform\Core\Annotation\ApiProperty;
  4. use App\Model\IriNormalizableInterface;
  5. use App\Model\NormalizeAsIRITrait;
  6. use App\Model\Traits\ImportableObjectTrait;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. class Params implements IriNormalizableInterface
  9. {
  10.     use ImportableObjectTrait;
  11.     use NormalizeAsIRITrait;
  12.     /**
  13.      * @ApiProperty(identifier=true)
  14.      *
  15.      * @var string
  16.      * @Groups({
  17.      *     "list",
  18.      *     "read",
  19.      *     "list_prospect",
  20.      *     "listing_prospect",
  21.      *     "read_prospect",
  22.      *     "write_post_prospect",
  23.      *     "read_post_prospect",
  24.      *     "read_contact",
  25.      *     "product:list", "product:read", "product:write", "product:update",
  26.      * * })
  27.      */
  28.     protected $id;
  29.     /**
  30.      * @var string|null
  31.      * @Groups({
  32.      *     "list",
  33.      *     "read",
  34.      *     "list_prospect",
  35.      *     "listing_prospect",
  36.      *     "read_prospect",
  37.      *     "write_post_prospect",
  38.      *     "read_post_prospect",
  39.      *     "read_contact",
  40.      *     "product:list", "product:read",
  41.      * })
  42.      */
  43.     protected $value;
  44.     /**
  45.      * @var string|null
  46.      * @Groups({"list", "read", "list_prospect", "listing_prospect","read_prospect", "write_post_prospect",  "read_post_prospect", "read_contact"})
  47.      */
  48.     protected $customerId;
  49.     /**
  50.      * @var string|null
  51.      * @Groups({
  52.      *     "list", "read",
  53.      *     "list_prospect",
  54.      *     "listing_prospect",
  55.      *     "read_prospect",
  56.      *     "read_post_prospect",
  57.      *     "read_contact",
  58.      *     "product:list", "product:read"
  59.      * })
  60.      */
  61.     protected $order;
  62.     /**
  63.      * @var string|null
  64.      * @Groups({
  65.      *     "list",
  66.      *     "read",
  67.      *     "list_prospect",
  68.      *     "listing_prospect",
  69.      *     "read_prospect",
  70.      *     "read_post_prospect",
  71.      *     "read_contact",
  72.      *     "product:list", "product:read"
  73.      * })
  74.      */
  75.     protected $isClient;
  76.     /**
  77.      * @var bool
  78.      */
  79.     protected $fromForm false;
  80.     /**
  81.      * @return string
  82.      */
  83.     public function getId(): string
  84.     {
  85.         return $this->id;
  86.     }
  87.     /**
  88.      * @param string $id
  89.      *
  90.      * @return Params
  91.      */
  92.     public function setId(string $id): Params
  93.     {
  94.         $this->id $id;
  95.         return $this;
  96.     }
  97.     /**
  98.      * @return string|null
  99.      */
  100.     public function getValue(): ?string
  101.     {
  102.         return $this->value;
  103.     }
  104.     /**
  105.      * @param string|null $value
  106.      *
  107.      * @return Params
  108.      */
  109.     public function setValue(?string $value): Params
  110.     {
  111.         $this->value $value;
  112.         return $this;
  113.     }
  114.     /**
  115.      * @return string|null
  116.      */
  117.     public function getCustomerId(): ?string
  118.     {
  119.         return $this->customerId;
  120.     }
  121.     /**
  122.      * @param string|null $customerId
  123.      *
  124.      * @return Params
  125.      */
  126.     public function setCustomerId(?string $customerId): Params
  127.     {
  128.         $this->customerId $customerId;
  129.         return $this;
  130.     }
  131.     /**
  132.      * @return string|null
  133.      */
  134.     public function getOrder(): ?string
  135.     {
  136.         return $this->order;
  137.     }
  138.     /**
  139.      * @param string|null $order
  140.      *
  141.      * @return Params
  142.      */
  143.     public function setOrder(?string $order): Params
  144.     {
  145.         $this->order $order;
  146.         return $this;
  147.     }
  148.     /**
  149.      * For setting up the default value in ChoiceType in the edit form.
  150.      *
  151.      * @return string
  152.      */
  153.     public function __toString(): string
  154.     {
  155.         return $this->getId();
  156.     }
  157.     /**
  158.      * @return bool
  159.      */
  160.     public function isFromForm(): bool
  161.     {
  162.         return $this->fromForm;
  163.     }
  164.     /**
  165.      * @param bool $fromForm
  166.      *
  167.      * @return Params
  168.      */
  169.     public function setFromForm(bool $fromForm): Params
  170.     {
  171.         $this->fromForm $fromForm;
  172.         return $this;
  173.     }
  174.     /**
  175.      * @return string|null
  176.      */
  177.     public function getIsClient(): ?string
  178.     {
  179.         return $this->isClient;
  180.     }
  181.     /**
  182.      * @param string|null $isClient
  183.      *
  184.      * @return Params
  185.      */
  186.     public function setIsClient(?string $isClient): Params
  187.     {
  188.         $this->isClient $isClient;
  189.         return $this;
  190.     }
  191. }