mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
26 lines
567 B
PHP
26 lines
567 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\RemoteStorage\Driver\Adapter;
|
|
|
|
use League\Flysystem\UnableToRetrieveMetadata;
|
|
|
|
/**
|
|
* Interface for metadata provider. Provides metadata of the file by given path.
|
|
*/
|
|
interface MetadataProviderInterface
|
|
{
|
|
/**
|
|
* Retrieve metadata for a file by path.
|
|
*
|
|
* @param string $path
|
|
* @return array
|
|
* @throws UnableToRetrieveMetadata
|
|
*/
|
|
public function getMetadata(string $path): array;
|
|
}
|