<?php

namespace App;

use Zizaco\Entrust\EntrustRole;

/**
 * Class Role
 * @package App
 */
class Role extends EntrustRole
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'id',
        'name',
    ];

    /**
     * WARNING! These constants are for initialization use only! Use at your own risk.
     */
    const AUDITOR = 'auditor';
    const AUDITOR_ID = 1;

    const DEVICE_MANAGER = 'entity-manager';
    const DEVICE_MANAGER_ID = 2;

    const ADMIN = 'admin';
    const ADMIN_ID = 3;

//@formatter:off
    const ALL_ROLES = [
        self::AUDITOR_ID        => self::AUDITOR,
        self::DEVICE_MANAGER_ID => self::DEVICE_MANAGER,
        self::ADMIN_ID          => self::ADMIN
    ];
//@formatter:on
}
