Cartalyst\Sentinel\Permissions\PermissionsTrait::__construct PHP Метод

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

Create a new permissions instance.
public __construct ( array $permissions = null, array $secondaryPermissions = null ) : void
$permissions array
$secondaryPermissions array
Результат void
    public function __construct(array $permissions = null, array $secondaryPermissions = null)
    {
        if (isset($permissions)) {
            $this->permissions = $permissions;
        }
        if (isset($secondaryPermissions)) {
            $this->secondaryPermissions = $secondaryPermissions;
        }
    }