mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-16 21:17:14 +01:00
33 lines
519 B
PHP
33 lines
519 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Xentral\Modules\CopperSurcharge\Wrapper;
|
|
|
|
use erpAPI;
|
|
|
|
|
|
final class CompanyDataWrapper
|
|
{
|
|
/** @var erpAPI $erp */
|
|
private $erp;
|
|
|
|
/**
|
|
* @param erpAPI $erp
|
|
*/
|
|
public function __construct(erpAPI $erp)
|
|
{
|
|
$this->erp = $erp;
|
|
}
|
|
|
|
/**
|
|
* @param string $fieldName
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCompanyData(string $fieldName): string
|
|
{
|
|
return (string)$this->erp->Firmendaten($fieldName);
|
|
}
|
|
}
|