<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Roles.
 *
 * @SuppressWarnings("PHPMD")
 * Auto generated class do not check mess
 */
#[ORM\Table(name: 'roles')]
#[ORM\UniqueConstraint(name: 'name', columns: ['name'])]
#[ORM\Entity]
class Role
{
    public const SYSADMIN = 'SysAdmin';
    public const GROUP_OWNER = 'GroupOwner';
    public const GROUPS_ADMIN = 'GroupsAdmin';

    /**
     * @var string
     */
    #[ORM\Column(name: 'name', type: 'string', length: 128, nullable: false)]
    private $name;

    /**
     * @var string
     */
    #[ORM\Column(name: 'description', type: 'string', length: 256, nullable: false)]
    private $description;

    /**
     * @var int
     */
    #[ORM\Column(name: 'id', type: 'integer')]
    #[ORM\Id]
    #[ORM\GeneratedValue(strategy: 'IDENTITY')]
    private $id;

    /**
     * Set name.
     *
     * @param string $name
     *
     * @return Role
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name.
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set description.
     *
     * @param string $description
     *
     * @return Role
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description.
     *
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Get id.
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }
}
