<?php


namespace AutoAdmin\Bundle\Content\Entity\Traits;

use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;

trait PublishableTrait
{
    #[ORM\Column(name: 'publishable', type: Types::BOOLEAN, options: ['default' => true])]
    protected bool $publishable = true;

    public function isPublishable(): bool
    {
        return $this->publishable;
    }

    public function setPublishable($boolean): void
    {
        $this->publishable = $boolean;
    }
}
