diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unstable/Security/Signature/Model/Signatory.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/unstable/Security/Signature/Model/Signatory.php b/lib/unstable/Security/Signature/Model/Signatory.php index c3a275082ae..6bd50bb1098 100644 --- a/lib/unstable/Security/Signature/Model/Signatory.php +++ b/lib/unstable/Security/Signature/Model/Signatory.php @@ -39,8 +39,7 @@ use OCP\AppFramework\Db\Entity; * @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; @@ -146,6 +145,13 @@ class Signatory extends Entity implements JsonSerializable { } /** + * @experimental 31.0.0 + */ + public function getAccount(): string { + return $this->account ?? ''; + } + + /** * update an entry in metadata * * @param string $key |