&x[UPx[UPp@ x[U<yw[U`"!x[U p=5x[U`PA5x[UP`A@ x[U<yw[Up"!x[U  =5x[U PA5x[U `A@ x[U<yw[Uhw[U "!x[Up (=ax[UPu@ x[U<1x[Uhw[U 0w[U Gx[U@+hw[U hw[U 0w[Up Gx[U+hw[U "!x[Upp 0=ax[U`Pu@ x[U <1x[U hw[U r0x[U` 8px[U`PB@ x[U0<uw[U0 @Gx[U@@+hw[U hw[Up "!x[Up` H="!x[U P P=5x[U@ PA5x[U0 `A@ x[UP<q4x[UPPu@ x[U`<1x[U`hw[U x[U*0w[Upp pGx[Up +hw[U@ "!x[Up0 X=ax[U`Pu@ x[U<1x[Uhw[U "!x[Up `="!x[U  h=5x[U PA5x[U `A@ x[U<q4x[UPu@ x[U<1x[Uhw[Ux[U@*0w[UpGx[U +hw[U"!x[Upp=ax[U`Pu@ x[U<1x[Uhw[U"!x[Upx="!x[U =5x[UPA5x[U`A@ x[U<q4x[UPu@ x[U<1x[Uhw[U@x[U*0w[UpGx[U+0w[UGx[U+hw[U"!x[Up=ax[U`Pu@ x[U<1x[Uhw[U0r0x[U` px[U`PB@ x[U <uw[U 0Gx[U0@+hw[Uhw[U x[U*hw[Up"!x[Up`=ax[U`Pu@ x[U@<1x[U@hw[Ur0x[U`px[U`PB@ x[UP<uw[UP`Gx[U`@+hw[Uphw[U`hw[UP,w[U@>x&@J@J@p[v@DH{p@p[v@8DI||@CpDDHCpCD|@IpbH** * Create a JSON representation of this object. */ public function toJson() { return ['id' => $this->id, 'label' => $this->label, 'pageType' => $this->pageType, 'isExternalUrl' => $this->isExternalUrl, 'pageId' => $this->pageId, 'url' => $this->url, 'hideCookieBanner' => $this->hideCookieBanner, 'isTargetBlank' => $this->isTargetBlank]; } /** * Generate a `Blocker` object from an array. * * @param array $data * @return self */ public static function fromJson($data) { $instance = new self(); $instance->setId($data['id'] ?? 0); $instance->setLabel($data['label'] ?? ''); $instance->setPageType($data['pageType'] ?? self::PAGE_TYPE_OTHER); $instance->setIsExternalUrl($data['isExternalUrl'] ?? \false); $instance->setPageId($data['pageId'] ?? 0); $instance->setUrl($data['url'] ?? ''); $instance->setHideCookieBanner($data['hideCookieBanner'] ?? \false); $instance->setIsTargetBlank($data['isTargetBlank'] ?? \false); return $instance; } }