<?php
namespace App\Entity;
use App\Repository\PredefinedQuotationItemRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=PredefinedQuotationItemRepository::class)
*/
class PredefinedQuotationItem
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="json")
* @Assert\NotBlank()
*/
private $json = [];
public function getId(): ?int
{
return $this->id;
}
public function getJson(): ?array
{
return $this->json;
}
public function setJson(array $json): self
{
$this->json = $json;
return $this;
}
}