OpenXE/classes/Modules/Dhl/Factory/DhlApiFactory.php

43 lines
884 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?php
namespace Xentral\Modules\Dhl\Factory;
use Xentral\Modules\Dhl\Api\DhlApi;
/**
* Class DhlApiFactory
*
* @package Xentral\Modules\Dhl\Factory
*/
class DhlApiFactory
{
public static function createProductionInstance(
$user,
$pass,
$accountNumber,
$senderName,
$senderStreetName,
$senderStreetNo,
$senderZip,
$senderCity,
$senderCountry,
$senderEmail
) {
return new DhlApi(
$user,
$pass,
'wawision_2',
'SQBKcoTz8GgOUp31VNyoZfWooSad3n',
$accountNumber,
'https://cig.dhl.de/services/production/soap',
$senderName,
$senderStreetName,
$senderStreetNo,
$senderZip,
$senderCity,
$senderCountry,
$senderEmail
);
}
}