src/Entity/Content/StaticPage.php line 25
<?php
/**
* Created by PhpStorm.
* User: artemglebov
* Date: 28/02/2018
* Time: 20:48
*/
namespace App\Entity\Content;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\TrackerFields;
use App\Entity\Traits\UserCreatedInterface;
use App\Entity\Traits\UserUpdatedInterface;
use App\Model\Translation\TranslatableTrait;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
#[ORM\Table(name: 'static_page')]
#[ORM\Index(name: 'idx_url', columns: ['url'])]
#[ORM\Index(name: 'idx_active', columns: ['deleted', 'active'])]
#[ORM\Entity(repositoryClass: 'App\Repository\Content\StaticPageRepository')]
#[ORM\HasLifecycleCallbacks]
class StaticPage implements UserCreatedInterface, UserUpdatedInterface, TranslatableInterface
{
use TranslatableTrait;
use TrackerFields;
use ActiveTrait;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\Column(type: 'string', length: 100)]
private ?string $url = null;
#[ORM\Column(type: 'string', nullable: true)]
private ?string $caption = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $content = null;
/**
* @var bool
*/
#[ORM\Column(type: 'boolean')]
private bool $internal = false;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
* @return StaticPage
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* @return mixed
*/
public function getUrl()
{
return $this->url;
}
/**
* @param mixed $url
* @return StaticPage
*/
public function setUrl($url)
{
$this->url = $url;
return $this;
}
/**
* @return bool
*/
public function isInternal(): bool
{
return $this->internal;
}
/**
* @param bool $internal
*/
public function setInternal(bool $internal): void
{
$this->internal = $internal;
}
}