HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/brameda/brameda.nl/app/Komma/Kms/Core/Attributes/Models/AbstractBlockSettings.php
<?php


namespace App\Komma\Kms\Core\Attributes\Models;

/**
 * Represents a settings model for a dynamic block
 *
 * Class BlockSettings
 * @package App\Komma\Kms\Core\Attributes
 */
abstract class AbstractBlockSettings implements \JsonSerializable
{
    /** @var string $blockType */
    protected $blockType;

    /**
     * @return string
     */
    public function getBlockType(): string
    {
        return $this->blockType;
    }

    /**
     * Deep clone functionality
     */
    public function __clone()
    {
        foreach($this as $key => $val) {
            if (is_object($val) || (is_array($val))) {
                $this->{$key} = unserialize(serialize($val));
            }
        }
    }

    /**
     * When passing an instance of this class to the json_encode function,
     * the data that this method returns will be json_encode'd.
     *
     * return mixed
     */
    public function jsonSerialize()
    {
        return [];
    }
}