<?php

namespace AutoAdmin\Bundle\Content\Entity\Traits;

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

/**
 * @deprecated since Breadcrumbs update (3.1)
 * use \AutoAdmin\Bundle\Content\Breadcrumbs\Model\BreadcrumbsConfigInterface and its trait
 * or \AutoAdmin\Bundle\Content\Breadcrumbs\Model\BreadcrumbsConfigTranslationInterface and its trait
 */
trait HiddenBreadcrumbTrait
{
    /**
     * @deprecated
     */
    #[ORM\Column(name: 'hidden_breadcrumb', type: Types::BOOLEAN, nullable: true, options: ['default' => false])]
    protected ?bool $hiddenBreadcrumb = false;

    /**
     * @deprecated
     */
    public function isHiddenBreadcrumb(): ?bool
    {
        return $this->hiddenBreadcrumb;
    }

    /**
     * @deprecated
     */
    public function setHiddenBreadcrumb(?bool $boolean): void
    {
        $this->hiddenBreadcrumb = $boolean;
    }
}
