<?php
namespace Sq\Entity\Schema\ORM;
use Doctrine\ORM\Mapping as ORM;
use Sq\Entity\Schema\Column;
/**
* SiteNews.
*/
#[ORM\Entity]
#[ORM\Table(name: 'site_news')]
class SiteNews
{
/**
* @var int
*/
#[ORM\Column(name: 'site_news_id', type: 'smallint', nullable: false, options: ['unsigned' => true])]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private $id;
/**
* @var \DateTimeInterface|null
*/
#[ORM\Column(name: 'site_news_date', type: 'datetime', nullable: true)]
private $date;
/**
* @var resource|null
*/
#[ORM\Column(name: 'site_news_text', type: 'blob', length: 65535, nullable: true)]
private $text;
/**
* @var bool|null
*/
#[ORM\Column(name: 'site_news_sent', type: 'boolean', nullable: true)]
private $sent = false;
/**
* @var string|null
*/
#[ORM\Column(name: 'site_news_target', type: 'string', columnDefinition: "ENUM('legacy', 'overhaul')", options: ['default' => 'legacy'])]
private $target = Column\SiteNewsTarget::LEGACY;
/**
* @var string|null
*/
#[ORM\Column(name: 'site_news_title', type: 'string', length: 191, nullable: true)]
private $title;
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getText()
{
return $this->text;
}
public function setText($text): self
{
$this->text = $text;
return $this;
}
public function getSent(): ?bool
{
return $this->sent;
}
public function setSent(?bool $sent): self
{
$this->sent = $sent;
return $this;
}
public function getTarget(): ?string
{
return $this->target;
}
public function setTarget(?string $target): self
{
$this->target = $target;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
}