Added missing PropertyCollection

This commit is contained in:
the-djmaze 2022-02-09 20:34:36 +01:00
parent e0ebc999d5
commit 8d0154530c

View file

@ -0,0 +1,33 @@
<?php
namespace RainLoop\Plugins;
//class PropertyCollection extends \MailSo\Base\Collection
class PropertyCollection extends \ArrayObject implements \JsonSerializable
{
/**
* @var string
*/
private $sLabel;
function __construct(string $sLabel)
{
$this->sLabel = $sLabel;
}
public function jsonSerialize()
{
return array(
'@Object' => 'Object/PluginProperty',
'Type' => \RainLoop\Enumerations\PluginPropertyType::GROUP,
'Label' => $this->sLabel,
'config' => $this->getArrayCopy()
/*
'config' => [
'@Object' => 'Collection/PropertyCollection',
'@Collection' => $this->getArrayCopy(),
]
*/
);
}
}