Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Create Backend
Browse files Browse the repository at this point in the history
  • Loading branch information
jotoeri committed Dec 17, 2021
1 parent 990ceb4 commit 35c6c69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Db/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
* @method void setShareType(integer $value)
* @method string getShareWith()
* @method void setShareWith(string $value)
* @method integer getPermissions()
* @method void setPermissions(integer $value)
*/
class Share extends Entity {
/** @var int */
Expand All @@ -43,6 +45,8 @@ class Share extends Entity {
protected $shareType;
/** @var string */
protected $shareWith;
/** @var int */
protected $permissions;

/**
* Option constructor.
Expand All @@ -51,6 +55,7 @@ public function __construct() {
$this->addType('formId', 'integer');
$this->addType('shareType', 'integer');
$this->addType('shareWith', 'string');
$this->addType('permissions', 'integer');
}

public function read(): array {
Expand All @@ -59,6 +64,7 @@ public function read(): array {
'formId' => $this->getFormId(),
'shareType' => $this->getShareType(),
'shareWith' => $this->getShareWith(),
// 'permissions' => $this->readPermissions() // TODO Read permissions from integer storage and write to Permission-Array.
];
}
}

0 comments on commit 35c6c69

Please sign in to comment.