Uninstaller/src/ValueDescriptor.php

49 lines
1.1 KiB
PHP
Raw Normal View History

2023-04-24 10:06:49 +00:00
<?php
/**
* @brief Uninstaller, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and Contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
declare(strict_types=1);
namespace Dotclear\Plugin\Uninstaller;
/**
* Cleaner value descriptor.
*
* Description of a value from AbstractCleaner::value()
* and AbstractCleaner::related()
2023-04-24 10:06:49 +00:00
*/
class ValueDescriptor
{
/**
* Contructor populate descriptor properties.
*
* @param string $ns The namespace
* @param string $id The ID on the namespace
* @param int $count The count of ID on the namespace
*/
public function __construct(
public readonly string $ns,
public readonly string $id,
public readonly int $count,
) {
}
/**
* Get descriptor properties.
*
* @return array<string,mixed> The properties
2023-04-24 10:06:49 +00:00
*/
public function dump(): array
{
return get_class_vars(__CLASS__) ?: [];
2023-04-24 10:06:49 +00:00
}
}