HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/dfwparty/sonicchocobliss.com/wp-content/mu-plugins/wp-toolkit/UI/includes/Dto/PageParams.php
<?php
// Copyright 1999-2026. WebPros International GmbH. All rights reserved.

namespace Webpros\WptkWpPlugin\WpToolkit\UI\Dto;

final class PageParams implements \JsonSerializable
{
    /**
     * @var string
     */
    private $type;

    /**
     * @var string
     */
    private $url;

    /**
     * @var bool
     */
    private $active;

    /**
     * @param string $type
     * @param string $url
     * @param bool   $isActive
     */
    public function __construct($type, $url, $isActive)
    {
        $this->type = $type;
        $this->url = $url;
        $this->active = $isActive;
    }

    /**
     * @return array<string, mixed>
     */
    #[\ReturnTypeWillChange]
    public function jsonSerialize()
    {
        return [
            'type' => $this->type,
            'url' => $this->url,
            'active' => $this->active,
        ];
    }
}