<?php
namespace App\Entity\Api;
use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Core\Annotation\ApiResource;
use Symfony\Component\Serializer\Annotation\Groups;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
/**
* @ORM\Entity(repositoryClass="App\Repository\StatisticRepository")
* @ApiResource(
* collectionOperations={"get"},
* itemOperations={"get"})
*/
class Statistic {
/**
* @ORM\Id
* @ORM\Column(type="string")
*/
protected $id;
protected $data = [];
/**
* Get the value of data
*/
public function getData()
{
return $this->data;
}
/**
* Set the value of data
*
* @return self
*/
public function setData($data)
{
$this->data = $data;
return $this;
}
/**
* Get the value of id
*/
public function getId()
{
return $this->id;
}
/**
* Set the value of id
*
* @return self
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
}