diff --git a/lib/unstable/Security/Signature/Model/Signatory.php b/lib/unstable/Security/Signature/Model/Signatory.php index c3a275082ae35..6bd50bb109805 100644 --- a/lib/unstable/Security/Signature/Model/Signatory.php +++ b/lib/unstable/Security/Signature/Model/Signatory.php @@ -39,8 +39,7 @@ * @method void setType(int $type) * @method int getStatus() * @method void setStatus(int $status) - * @method void setAccount(string $account) - * @method string getAccount() + * @method void setAccount(?string $account) * @method void setMetadata(array $metadata) * @method ?array getMetadata() * @method void setCreation(int $creation) @@ -56,7 +55,7 @@ class Signatory extends Entity implements JsonSerializable { protected string $host = ''; protected string $publicKey = ''; protected string $privateKey = ''; - protected string $account = ''; + protected ?string $account = ''; protected int $type = 9; protected int $status = 1; protected ?array $metadata = null; @@ -145,6 +144,13 @@ public function getSignatoryStatus(): SignatoryStatus { return SignatoryStatus::from($this->getStatus()); } + /** + * @experimental 31.0.0 + */ + public function getAccount(): string { + return $this->account ?? ''; + } + /** * update an entry in metadata *