first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
<?php
/**
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/gpl.html
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Class Przelewy24RestBlikInterfaceFactory
*
* One of factories for Przelewy24 plugin.
*/
class Przelewy24RestBlikInterfaceFactory
{
/**
* Create instance of Przelewy24RestBlikInterface for suffix.
*
* @param string $suffix money suffix
*
* @return Przelewy24RestBlikInterface
*
* @throws Exception
*/
public static function getForSuffix($suffix)
{
return Przelewy24RestBlikFactory::buildForSuffix($suffix);
}
/**
* Create default instance of Przelewy24RestBlikInterface.
*
* @return Przelewy24RestBlikInterface
*
* @throws Exception
*/
public static function getDefault()
{
$default = Przelewy24RestBlikFactory::buildDefault();
if (!$default) {
/* There is no default */
$default = new Przelewy24RestBlikEmpty();
}
return $default;
}
}