Skip to content

Commit

Permalink
Add new unserialize and serialize methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Jul 17, 2022
1 parent 61ce50f commit a061805
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Model/SnapshotPageProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,25 @@ public function getType()
return $this->getPage()->getType();
}

/**
* @return mixed[]
*/
public function __serialize(): array
{
return [
'pageId' => $this->getPage()->getId(),
'snapshotId' => $this->snapshot->getId(),
];
}

/**
* @param mixed[] $data
*/
public function __unserialize(array $data): void
{
// TODO: Implement __unserialize() method.
}

/**
* Serialize a snapshot page proxy.
*
Expand Down

0 comments on commit a061805

Please sign in to comment.