resq/src/Entity/StaticContent.php
2020-01-17 07:55:35 +00:00

54 lines
823 B
PHP

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
* @ORM\Table(name="static_content")
*/
class StaticContent
{
// unique id
/**
* @ORM\Id
* @ORM\Column(type="string", length=50)
* @Assert\NotBlank()
*/
protected $id;
// content
/**
* @ORM\Column(type="text")
*/
protected $content;
public function __construct()
{
}
public function setID($id)
{
$this->id = $id;
return $this;
}
public function getID()
{
return $this->id;
}
public function setContent($content)
{
$this->content = $content;
return $this;
}
public function getContent()
{
return $this->content;
}
}