<?php
declare(strict_types=1);
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiProperty;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity
* @ApiResource(
* iri="http://schema.org/Thing",
* collectionOperations={
* "get"={
* "method"="GET",
* "normalization_context"={
* "groups"={"output"}
* },
* "denormalization_context"={
* "groups"={"input"}
* }
* }
* },
* itemOperations={
* "get"={
* "method"="GET",
* "normalization_context"={
* "groups"={"output"}
* },
* "denormalization_context"={
* "groups"={"input"}
* }
* }
* },
* attributes={
* "filters"={
* "lookup.search_filter"
* },
* "normalization_context"={
* "groups"={""}
* },
* "denormalization_context"={
* "groups"={""}
* }
* }
* )
*
* The most generic type of item.
*
* @see http://schema.org/Thing Documentation on Schema.org
*/
class Lookup
{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
* @Groups({"output"})
*
* @var int|null
*/
protected $id;
/**
* @ORM\Column(type="string", length=180, nullable=false)
* @Groups({"output"})
*
* @var string|null
*/
protected $type;
/**
* @ORM\Column(type="string", length=180, nullable=false)
* @ApiProperty(iri="http://schema.org/description")
* @Groups({"output"})
*
* @var string|null a description of the item
*/
protected $description;
/**
* @ORM\Column(type="string", length=180, nullable=false)
* @ApiProperty(iri="http://schema.org/description")
* @Groups({"output"})
*
* @var string|null a description of the item
*/
protected $descriptionES;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"output"})
*
* @var int|null
*/
protected $code;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"output"})
*
* @var int|null
*/
protected $listOrder;
/**
* @ORM\Column(type="boolean", options={"default" = false})
* @Groups({"output"})
*
* @var bool|null
*/
protected $disabled;
public function getId(): ?int
{
return $this->id;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescriptionES(?string $descriptionES): self
{
$this->descriptionES = $descriptionES;
return $this;
}
public function getDescriptionES(): ?string
{
return $this->descriptionES;
}
public function setCode(?int $code): self
{
$this->code = $code;
return $this;
}
public function getCode(): ?int
{
return $this->code;
}
public function setListOrder(?int $listOrder): self
{
$this->listOrder = $listOrder;
return $this;
}
public function getListOrder(): ?int
{
return $this->listOrder;
}
public function setDisabled(?bool $disabled): self
{
$this->disabled = $disabled;
return $this;
}
public function getDisabled(): ?bool
{
return $this->disabled;
}
}