Skip to content

Commit

Permalink
add missing idDocuments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwemox committed Mar 23, 2021
1 parent 3157c5c commit e9443e9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Model/SignerInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ class SignerInfo
*/
protected $redirectWait;

/**
* @var null|array
*/
protected $idDocuments;

public function __construct()
{
$this->refusedDocs = [];
Expand Down Expand Up @@ -114,6 +119,7 @@ public static function configureData(OptionsResolver $resolver)
->setDefault('refusalComment', null)->setAllowedTypes('refusalComment', ['null', 'string'])
->setDefault('redirectPolicy', null)->setAllowedTypes('redirectPolicy', ['null', 'string'])
->setDefault('redirectWait', null)->setAllowedTypes('redirectWait', ['null', 'int'])
->setDefault('idDocuments', null)->setAllowedTypes('idDocuments', ['array', 'null'])
;
}

Expand Down Expand Up @@ -149,6 +155,7 @@ public static function createFromArray(array $options): self
->setRefusalComment($resolvedOptions['refusalComment'])
->setRedirectPolicy($resolvedOptions['redirectPolicy'])
->setRedirectWait($resolvedOptions['redirectWait'])
->setIdDocuments($resolvedOptions['idDocuments'])
;
}

Expand Down Expand Up @@ -424,4 +431,24 @@ public function getRedirectWait(): ?int
{
return $this->redirectWait;
}

/**
* @return array|null
*/
public function getIdDocuments(): ?array
{
return $this->idDocuments;
}

/**
* @param array|null $idDocuments
*
* @return SignerInfo
*/
public function setIdDocuments(?array $idDocuments): SignerInfo
{
$this->idDocuments = $idDocuments;

return $this;
}
}

0 comments on commit e9443e9

Please sign in to comment.