EscolaLMS/Files

View on GitHub
src/Http/Services/Contracts/FileServiceContract.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace EscolaLms\Files\Http\Services\Contracts;

use EscolaLms\Core\Models\User;
use Illuminate\Support\Collection;

interface FileServiceContract
{
    public function findAll(string $directory, array $list): array;

    public function putAll(string $directory, array $list): array;

    public function listInfo(string $directory): Collection;

    public function move(string $sourceUrl, string $destinationUrl): bool;

    public function delete(string $url): bool;

    public function findByName(string  $directory, string $name): Collection;

    public function addUserAccessToDirectory(User $user, string $directoryName): array;

    public function removeUserAccessToDirectory(User $user, string $directoryName): array;
}