OpenXE/classes/Modules/Postat/SOAP/Parameter/Countries.php
2021-05-21 08:49:41 +02:00

26 lines
548 B
PHP

<?php
namespace Xentral\Modules\Postat\SOAP\Parameter;
use Xentral\Modules\Postat\SOAP\ParameterInterface;
use Xentral\Modules\Postat\SOAP\PostAtException;
class Countries implements ParameterInterface
{
private $countries;
public function __construct(array $countries)
{
if (!is_array($countries)) {
throw new PostAtException('The given target countries are invalid.');
}
$this->countries = $countries;
}
public function getData(): array
{
return $this->countries;
}
}