<?php
namespace App\Entity;
use App\Utils\ExtendedEntity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\AnnouncementRepository")
*/
class Announcement
{
use ExtendedEntity;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="text")
*/
private $content;
/**
* @ORM\Column(type="string", length=128)
*/
private $type;
public function getId(): ?int
{
return $this->id;
}
/** @return mixed */
public function getContent()
{
return $this->content;
}
/** @param mixed $content */
public function setContent($content)
{
$this->content = $content;
}
/** @return mixed */
public function getType()
{
return $this->type;
}
/** @param mixed $type */
public function setType($type)
{
$this->type = $type;
}
public function __toString()
{
return $this->content;
}
}