src/Entity/PredefinedQuotationItem.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PredefinedQuotationItemRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PredefinedQuotationItemRepository::class)
  8.  */
  9. class PredefinedQuotationItem
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="json")
  19.      * @Assert\NotBlank()
  20.      */
  21.     private $json = [];
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getJson(): ?array
  27.     {
  28.         return $this->json;
  29.     }
  30.     public function setJson(array $json): self
  31.     {
  32.         $this->json $json;
  33.         return $this;
  34.     }
  35. }