OpenXE/classes/Modules/CopperSurcharge/Wrapper/CompanyDataWrapper.php

33 lines
519 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?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);
}
}