File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 * @method void setShareType(integer $value)
3636 * @method string getShareWith()
3737 * @method void setShareWith(string $value)
38+ * @method integer getPermissions()
39+ * @method void setPermissions(integer $value)
3840 */
3941class Share extends Entity {
4042 /** @var int */
@@ -43,6 +45,8 @@ class Share extends Entity {
4345 protected $ shareType ;
4446 /** @var string */
4547 protected $ shareWith ;
48+ /** @var int */
49+ protected $ permissions ;
4650
4751 /**
4852 * Option constructor.
@@ -51,6 +55,7 @@ public function __construct() {
5155 $ this ->addType ('formId ' , 'integer ' );
5256 $ this ->addType ('shareType ' , 'integer ' );
5357 $ this ->addType ('shareWith ' , 'string ' );
58+ $ this ->addType ('permissions ' , 'integer ' );
5459 }
5560
5661 public function read (): array {
@@ -59,6 +64,7 @@ public function read(): array {
5964 'formId ' => $ this ->getFormId (),
6065 'shareType ' => $ this ->getShareType (),
6166 'shareWith ' => $ this ->getShareWith (),
67+ // 'permissions' => $this->readPermissions() // TODO Read permissions from integer storage and write to Permission-Array.
6268 ];
6369 }
6470}
You can’t perform that action at this time.
0 commit comments