Files
magento2/app/code/Magento/RemoteStorage/Driver/Adapter/MetadataProviderInterface.php
2021-03-29 11:06:54 -05:00

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;
}