3636 * @method int getStatus()
3737 * @method void setMetadata(array $metadata)
3838 * @method ?array getMetadata()
39+ * @method void setModificationStatus(int $modificationStatus)
40+ * @method int getModificationStatus()
3941 */
4042class File extends Entity {
4143 protected int $ nodeId = 0 ;
@@ -49,13 +51,19 @@ class File extends Entity {
4951 protected ?string $ signedHash = null ;
5052 protected ?string $ callback = null ;
5153 protected ?array $ metadata = null ;
54+ protected int $ modificationStatus = 0 ;
5255 public const STATUS_NOT_LIBRESIGN_FILE = -1 ;
5356 public const STATUS_DRAFT = 0 ;
5457 public const STATUS_ABLE_TO_SIGN = 1 ;
5558 public const STATUS_PARTIAL_SIGNED = 2 ;
5659 public const STATUS_SIGNED = 3 ;
5760 public const STATUS_DELETED = 4 ;
5861
62+ public const MODIFICATION_UNCHECKED = 0 ;
63+ public const MODIFICATION_UNMODIFIED = 1 ;
64+ public const MODIFICATION_ALLOWED = 2 ;
65+ public const MODIFICATION_VIOLATION = 3 ;
66+
5967 public function __construct () {
6068 $ this ->addType ('id ' , Types::INTEGER );
6169 $ this ->addType ('nodeId ' , Types::INTEGER );
@@ -69,6 +77,7 @@ public function __construct() {
6977 $ this ->addType ('callback ' , Types::STRING );
7078 $ this ->addType ('status ' , Types::INTEGER );
7179 $ this ->addType ('metadata ' , Types::JSON );
80+ $ this ->addType ('modificationStatus ' , Types::SMALLINT );
7281 }
7382
7483 public function isDeletedAccount (): bool {
0 commit comments