OpenXE/classes/Modules/CopperSurcharge/Wrapper/CompanyDataWrapper.php
2021-05-21 08:49:41 +02:00

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);
}
}