You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
2.2 KiB
PHP

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\PadRepository")
*/
class Pad
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $content;
/**
* @ORM\Column(type="datetime")
*/
private $create_date;
/**
* @ORM\Column(type="boolean")
*/
private $is_clear = true;
/**
* @ORM\Column(type="boolean")
*/
private $is_published = true;
/**
* @ORM\Column(type="boolean")
*/
private $expires = true;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
public function __construct()
{
$this->create_date = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(?string $content): self
{
$this->content = $content;
return $this;
}
public function getCreateDate(): ?\DateTimeInterface
{
return $this->create_date;
}
public function setCreateDate(\DateTimeInterface $create_date): self
{
$this->create_date = $create_date;
return $this;
}
public function getIsClear(): ?bool
{
return $this->is_clear;
}
public function setIsClear(bool $is_clear): self
{
$this->is_clear = $is_clear;
return $this;
}
public function getIsPublished(): ?bool
{
return $this->is_published;
}
public function setIsPublished(bool $is_published): self
{
$this->is_published = $is_published;
return $this;
}
public function getExpires(): ?bool
{
return $this->expires;
}
public function setExpires(bool $expires): self
{
$this->expires = $expires;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
}