Файловый менеджер - Редактировать - /home/harasnat/www/horse/wp-content/plugins/mollie-payments-for-woocommerce/src/PaymentMethods/IconFactory.php
Назад
<?php declare (strict_types=1); namespace Mollie\WooCommerce\PaymentMethods; class IconFactory { protected $pluginUrl; protected $pluginPath; /** * IconFactory constructor. * * @param $pluginUrl */ public function __construct($pluginUrl, $pluginPath) { $this->pluginUrl = $pluginUrl; $this->pluginPath = $pluginPath; } /** * @return string */ public function getIconUrl($paymentMethodName): string { return $this->iconFactory()->svgUrlForPaymentMethod($paymentMethodName); } public function getExternalIconHtml($svgIconUrl): string { return $this->iconFactory()->generateIconHtml($svgIconUrl); } /** * Singleton of the class that handles icons (API/fallback) * @return PaymentMethodsIconUrl|null */ public function iconFactory(): ?\Mollie\WooCommerce\PaymentMethods\PaymentMethodsIconUrl { static $factory = null; if ($factory === null) { $factory = new \Mollie\WooCommerce\PaymentMethods\PaymentMethodsIconUrl($this->pluginUrl, $this->pluginPath); } return $factory; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка