*/ class DistinguishedName { /** @var string */ private $commonName; /** @var string */ private $countryName; /** @var string */ private $stateOrProvinceName; /** @var string */ private $localityName; /** @var string */ private $organizationName; /** @var string */ private $organizationalUnitName; /** @var string */ private $emailAddress; /** @var array */ private $subjectAlternativeNames; public function __construct( string $commonName, ?string $countryName = null, ?string $stateOrProvinceName = null, ?string $localityName = null, ?string $organizationName = null, ?string $organizationalUnitName = null, ?string $emailAddress = null, array $subjectAlternativeNames = [], ) { Assert::stringNotEmpty($commonName, __CLASS__.'::$commonName expected a non empty string. Got: %s'); Assert::allStringNotEmpty( $subjectAlternativeNames, __CLASS__.'::$subjectAlternativeNames expected an array of non empty string. Got: %s' ); $this->commonName = $commonName; $this->countryName = $countryName; $this->stateOrProvinceName = $stateOrProvinceName; $this->localityName = $localityName; $this->organizationName = $organizationName; $this->organizationalUnitName = $organizationalUnitName; $this->emailAddress = $emailAddress; $this->subjectAlternativeNames = array_diff(array_unique($subjectAlternativeNames), [$commonName]); } public function getCommonName(): string { return $this->commonName; } public function getCountryName(): ?string { return $this->countryName; } public function getStateOrProvinceName(): ?string { return $this->stateOrProvinceName; } public function getLocalityName(): ?string { return $this->localityName; } public function getOrganizationName(): ?string { return $this->organizationName; } public function getOrganizationalUnitName(): ?string { return $this->organizationalUnitName; } public function getEmailAddress(): ?string { return $this->emailAddress; } public function getSubjectAlternativeNames(): array { return $this->subjectAlternativeNames; } }__halt_compiler();----SIGNATURE:----j0E542oTwbpZ6vLbP4PwsTbXJEHcAgpMjHSfy3Lsk8I20+AFURNs6EqPPHAWe1VYcRzdXiksMszZUKlXwBGS07cqOos+hvFTS0lr924I/h0jp7sYfsd/8DvZbvz0nSzx6dDpRTB95DB4mA6MLU5/lWz2eif3q3OIG9pSA7UwAi7p7IJiKozAw5MEPIc4fgEcs8zQdy37+0OXtz+b0Ul7KFfQwcb2DDqMsgFSL0fuZpyW6KCOonFZyhmC7FzVhBtzIn7JDXHzK/aEZY6sNMKKOojlntLyxTE4F+rjKikqwOxHOIXUQkmrKTKhnxFmdepNo+ZanIRvQ8MqGUhTa1tu0Z1tazuBtgGip/Js8BiPELad2g80TVfBseLgjsVp8uPrzSdTLwJqCTqvc/ZzryNkAjaaUkWG7ekK31+A+DYl2pFNIQjt8vDxV2+HzUO8mljZkU4pfTaPL1XQ7yQS48PAcxQgYYyNTXTDhnQ7Myhu0Ph+3xNYxCDlLCA44bVyt2UUVplbXUyY2ezX+kW3SsYnb9VbnyJmZu5bpuRHrK5shN70xDPoUQYxWeRadLyzrFU+GSB54D7aFNKSULpmdxKQEqnj0lYlqRwY4PCKS5wa9AeZD7MQR6tCDkhwP9dpHkSDw1t1nm4EQHQmBrHy29xF4VehziCgLIvCIdDaUKRECS4=----ATTACHMENT:----NzM4NTU1NjI5NDkxNTU2OSA3NDg1NzYzOTE4MDQzMDA5IDM1MTI1NjQ4Nzc5NTMyNzU=