PHP Класс Silber\Bouncer\Conductors\RemovesRole

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$role Silber\Bouncer\Database\Role | string The role to be removed from an authority.

Открытые методы

Метод Описание
__construct ( Role | string $role ) Constructor.
from ( Model | array | integer $authority ) : boolean Remove the role from the given authority.

Защищенные методы

Метод Описание
role ( ) : Role | null Get the role.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Role | string $role )
$role Silber\Bouncer\Database\Role | string

from() публичный Метод

Remove the role from the given authority.
public from ( Model | array | integer $authority ) : boolean
$authority Illuminate\Database\Eloquent\Model | array | integer
Результат boolean

role() защищенный Метод

Get the role.
protected role ( ) : Role | null
Результат Silber\Bouncer\Database\Role | null

Описание свойств

$role защищенное свойство

The role to be removed from an authority.
protected Role,Silber\Bouncer\Database|string $role
Результат Silber\Bouncer\Database\Role | string