src/GoogleDriveAdapter.php
protected function getRawVisibility($path)
    {
        $file = $this->getFileObject($path);
        $permissions = $file->getPermissions();
        $visibility = AdapterInterface::VISIBILITY_PRIVATE;
        foreach ($permissions as $permission) {
            if ($permission->type === $this->publishPermission['type'] && $permission->role === $this->publishPermission['role']) {
                $visibility = AdapterInterface::VISIBILITY_PUBLIC;
                break;
            }
        }
        return $visibility;
    }
protected function getRawVisibility($path)
    {
        $file = $this->getFileObject($path);
        $permissions = $file->getPermissions();
        $visibility = AdapterInterface::VISIBILITY_PRIVATE;
        foreach ($permissions as $permission) {
            if ($permission->type === $this->publishPermission['type'] && $permission->role === $this->publishPermission['role']) {
                $visibility = AdapterInterface::VISIBILITY_PUBLIC;
                break;
            }
        }
        return $visibility;
    }
protected function getRawVisibility ( $ path ) { $ file = $ this -> getFileObject ( $ path ) ; $ permissions = $ file -> getPermissions ( ) ; $ visibility = AdapterInterface :: VISIBILITY_PRIVATE ; foreach ( $ permissions as $ permission ) { if ( $ permission -> type === $ this -> publishPermission [ 'type' ] && $ permission -> role === $ this -> publishPermission [ 'role' ] ) { $ visibility = AdapterInterface :: VISIBILITY_PUBLIC ; break ; } } return $ visibility ; }
Get the object permissions presented as a visibility.

@param string $path
itemId path

@return string
Get the object permissions presented as a visibility .