/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Adapter/Image
NameSizeModeActions
Uploader/-0755rm
ImageGenerator.php51370644editdlrm
ImagePathFactory.php16440644editdlrm
ImageRetriever.php142820644editdlrm
ImageValidator.php34690644editdlrm
ProductImageFileValidator.php31270644editdlrm
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Adapter/Image/ImagePathFactory.php (1644B)
* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Adapter\Image; class ImagePathFactory { /** * @var string */ private $pathToBaseDir; /** * @param string $pathToBaseDir */ public function __construct( string $pathToBaseDir ) { $this->pathToBaseDir = rtrim($pathToBaseDir, '/'); } /** * @param int|string $imageName * * @return string */ public function getPath($imageName): string { return sprintf('%s/%s.jpg', $this->pathToBaseDir, $imageName); } }