<?php
namespace App\V4\Model\Params;
use ApiPlatform\Core\Annotation\ApiProperty;
use App\Model\IriNormalizableInterface;
use App\Model\NormalizeAsIRITrait;
use App\Model\Traits\ImportableObjectTrait;
use Symfony\Component\Serializer\Annotation\Groups;
class Params implements IriNormalizableInterface
{
use ImportableObjectTrait;
use NormalizeAsIRITrait;
/**
* @ApiProperty(identifier=true)
*
* @var string
* @Groups({
* "product:list", "product:read", "product:write", "product:update",
* "prospect:list", "prospect:read", "prospect:write", "prospect:update",
* "contact:list", "contact:read", "contact:write", "contact:update"
* * })
*/
protected $id;
/**
* @var string|null
* @Groups({
* "product:list", "product:read", "product:write", "product:update",
* "prospect:list", "prospect:read", "prospect:write", "prospect:update",
* "contact:list", "contact:read", "contact:write", "contact:update"
* })
*/
protected $value;
/**
* @var string|null
* @Groups({
* "product:list", "product:read", "product:write", "product:update",
* "prospect:list", "prospect:read", "prospect:write", "prospect:update",
* "contact:list", "contact:read", "contact:write", "contact:update"
* })
*/
protected $customerId;
/**
* @var string|null
* @Groups({
* "product:list", "product:read",
* "prospect:list", "prospect:read",
* "contact:list", "contact:read"
* })
*/
protected $order;
/**
* @var bool|null
* @Groups({
* "product:list", "product:read",
* "prospect:list", "prospect:read",
* "contact:list", "contact:read"
* })
*/
protected $isClient;
/**
* @var bool
*/
protected $fromForm = false;
/**
* @return string
*/
public function getId(): string
{
return $this->id;
}
/**
* @param string $id
*
* @return Params
*/
public function setId(string $id): Params
{
$this->id = $id;
return $this;
}
/**
* @return string|null
*/
public function getValue(): ?string
{
return $this->value;
}
/**
* @param string|null $value
*
* @return Params
*/
public function setValue(?string $value): Params
{
$this->value = $value;
return $this;
}
/**
* @return string|null
*/
public function getCustomerId(): ?string
{
return $this->customerId;
}
/**
* @param string|null $customerId
*
* @return Params
*/
public function setCustomerId(?string $customerId): Params
{
$this->customerId = $customerId;
return $this;
}
/**
* @return string|null
*/
public function getOrder(): ?string
{
return $this->order;
}
/**
* @param string|null $order
*
* @return Params
*/
public function setOrder(?string $order): Params
{
$this->order = $order;
return $this;
}
/**
* For setting up the default value in ChoiceType in the edit form.
*
* @return string
*/
public function __toString(): string
{
return $this->getId();
}
/**
* @return bool
*/
public function isFromForm(): bool
{
return $this->fromForm;
}
/**
* @param bool $fromForm
*
* @return Params
*/
public function setFromForm(bool $fromForm): Params
{
$this->fromForm = $fromForm;
return $this;
}
/**
* @return bool|null
*/
public function getIsClient(): ?bool
{
return $this->isClient;
}
/**
* @param bool|null $isClient
*
* @return Params
*/
public function setIsClient(?bool $isClient): Params
{
$this->isClient = $isClient;
return $this;
}
}