for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PhpCfdi\Finkok\Services\Registration;
class AddCommand
{
/** @var string */
private $rfc;
/** @var CustomerType */
private $type;
private $certificate;
private $privateKey;
private $passPhrase;
public function __construct(
string $rfc,
?CustomerType $type = null,
string $certificate = '',
string $privateKey = '',
string $passPhrase = ''
) {
$this->rfc = $rfc;
$this->type = $type ?? CustomerType::ondemand();
$this->certificate = $certificate;
$this->privateKey = $privateKey;
$this->passPhrase = $passPhrase;
}
public function rfc(): string
return $this->rfc;
public function type(): CustomerType
return $this->type;
public function certificate(): string
return $this->certificate;
public function privateKey(): string
return $this->privateKey;
public function passPhrase(): string
return $this->passPhrase;