protected function createPermissions()
    {
        $userPermissions = $this->permissions;

        $rolePermissions = [];

        foreach ($this->roles as $role) {
            $rolePermissions[] = $role->permissions;
        }

        return new static::$permissionsClass($userPermissions, $rolePermissions);
    }
protected function createPermissions()
    {
        $userPermissions = $this->permissions;

        $rolePermissions = [];

        foreach ($this->roles as $role) {
            $rolePermissions[] = $role->permissions;
        }

        return new static::$permissionsClass($userPermissions, $rolePermissions);
    }
protected function createPermissions ( ) { $ userPermissions = $ this -> permissions ; $ rolePermissions = [ ] ; foreach ( $ this -> roles as $ role ) { $ rolePermissions [ ] = $ role -> permissions ; } return new static :: $ permissionsClass ( $ userPermissions , $ rolePermissions ) ; }
Creates a permissions object.

@return \Cartalyst\Sentinel\Permissions\PermissionsInterface
Creates a permissions object .