src/Entity/Content.php line 11
<?php
namespace App\Entity;
use App\Repository\ContentRepository;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait;
#[ORM\Entity(repositoryClass: ContentRepository::class)]
class Content implements TranslatableInterface
{
const TYPE_NEWS = 0;
const TYPE_TECHNOLOGY = 1;
const TYPE_TRAINING = 2;
const TYPE_INTRO = 3;
const TYPE_ABOUT = 4;
use TranslatableTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $type;
#[ORM\Column(length: 500)]
private ?string $image = null;
#[ORM\Column]
private ?\DateTime $createdAt = null;
public function getId(): ?int
{
return $this->id;
}
/**
* @return int|null
*/
public function getType(): ?int
{
return $this->type;
}
/**
* @param int|null $type
*/
public function setType(?int $type): void
{
$this->type = $type;
}
/**
* @return string|null
*/
public function getImage(): ?string
{
return $this->image;
}
/**
* @param string|null $image
*/
public function setImage(?string $image): void
{
$this->image = $image;
}
public function getCreatedAt(): ?\DateTime
{
return $this->createdAt;
}
public function setCreatedAt(\DateTime $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}