49 lines
1.1 KiB
PHP
49 lines
1.1 KiB
PHP
<?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()
|
|
*/
|
|
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
|
|
*/
|
|
public function dump(): array
|
|
{
|
|
return get_object_vars($this);
|
|
}
|
|
}
|