<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Test
*
* @ORM\Table(name="test")
* @ORM\Entity
* @ORM\Entity(repositoryClass="App\Repository\TestRepository")
*/
class Test
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var array
*
* @ORM\Column(name="json_array", type="json", nullable=false)
*/
private $jsonArray;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set jsonArray
*
* @param array $jsonArray
*
* @return Test
*/
public function setJsonArray($jsonArray)
{
$this->jsonArray = $jsonArray;
return $this;
}
/**
* Get jsonArray
*
* @return array
*/
public function getJsonArray()
{
return $this->jsonArray;
}
}