public function getSnapshotVisibility(PageSnapshotInterface $page) { $jsonObject = json_decode($page->getVersionedData()); return $jsonObject->visibility; }