for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Kafkiansky\SmsRu;
final class SmsRuConfig
{
use Parameterizable;
/**
* @var string|null
*/
private $apiId;
* @var int|null
private $json;
private $login;
private $password;
private $partnerId;
private $test;
private $from;
public function __construct(array $config)
$this->fillFromParameters($config);
}
* @return array
public function toArray(): array
return \array_filter([
'api_id' => $this->apiId,
'login' => $this->login,
'password' => $this->password,
'json' => $this->json,
'partner_id' => $this->partnerId,
'test' => $this->test,
'from' => $this->from,
]);