Skip to content

Commit

Permalink
Add is_shared property to api
Browse files Browse the repository at this point in the history
  • Loading branch information
brantje committed Sep 28, 2016
1 parent 028fb36 commit 2e6de5c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/Db/Credential.php
Expand Up @@ -55,6 +55,8 @@
* @method string getOtp()
* @method void setHidden(bool $value)
* @method string getHidden()
* @method void setIsShared(integer $value)
* @method string getIsShared()
Expand Down Expand Up @@ -85,6 +87,7 @@ class Credential extends Entity implements \JsonSerializable{
protected $customFields;
protected $otp;
protected $hidden;
protected $isShared;

public function __construct() {
// add types in constructor
Expand All @@ -93,8 +96,10 @@ public function __construct() {
$this->addType('renewInterval', 'integer');
$this->addType('expireTime', 'integer');
$this->addType('deleteTime', 'integer');
$this->addType('vault_id', 'integer');
$this->addType('credential_id', 'integer');
$this->addType('vaultId', 'integer');
$this->addType('credentialId', 'integer');
$this->addType('isShared', 'integer');
$this->addType('hidden', 'integer');
}


Expand Down Expand Up @@ -124,6 +129,7 @@ public function jsonSerialize() {
'custom_fields' => $this->getCustomFields(),
'otp' => $this->getOtp(),
'hidden' => $this->getHidden(),
'is_shared' => $this->getIsShared(),
];
}
}

0 comments on commit 2e6de5c

Please sign in to comment.