HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/be.naniguide.com/app/Library/Assets/AssetRepositoryInterface.php
<?php

namespace App\Library\Assets;

use App\Model\Customer;
use Symfony\Component\HttpFoundation\File\UploadedFile;

interface AssetRepositoryInterface
{
    /**
     * @param  array{path_eq?: string, search?: string, kind?: string, sort?: string, order?: string, page?: int, perPage?: int}  $filter
     * @return array{items: AssetEntry[], total: int, page: int, perPage: int}
     */
    public function paginate(Customer $customer, array $filter): array;

    /**
     * Distinct stored `path` values directly under $parentStoragePrefix
     * (excluding $parentStoragePrefix itself). Used to discover subfolders.
     *
     * @return string[]
     */
    public function distinctSubfolders(Customer $customer, string $parentStoragePrefix): array;

    public function findByUid(Customer $customer, string $uid): AssetEntry;

    public function createMediaForCustomer(Customer $customer, UploadedFile $file): AssetEntry;

    public function rename(Customer $customer, string $uid, string $newName): AssetEntry;

    public function delete(Customer $customer, string $uid): void;

    /**
     * Customer-specific storage stem. Folder hierarchy in the UI is derived
     * by stripping this prefix from each row's stored `path`.
     */
    public function customerStoragePrefix(Customer $customer): string;
}