| Current Path : /home/rtorresani/www/vendor/magento/module-media-gallery-synchronization/Model/ |
| Current File : //home/rtorresani/www/vendor/magento/module-media-gallery-synchronization/Model/GetContentHash.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\MediaGallerySynchronization\Model;
/**
* Get hashed value of image content.
*/
class GetContentHash
{
/**
* Return the hash value of the given filepath.
*
* @param string $content
* @return string
*/
public function execute(string $content): string
{
return sha1($content);
}
}