<?php

namespace AutoAdmin\Bundle\Admin\Entity;

use AutoAdmin\Bundle\Admin\Model\AdministratorModel;
use AutoAdmin\Bundle\Content\Entity\Traits\IdTrait;
use AutoAdmin\Bundle\Content\Model\IdInterface;
use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity(repositoryClass: 'AutoAdmin\Bundle\Admin\Repository\AdministratorRepository')]
class Administrator extends AdministratorModel implements IdInterface
{
    use IdTrait;

    public function getUserIdentifier(): string
    {
        return $this->username;
    }
}
