File: D:/HostingSpaces/stafa/stafa.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 [];
}
}