Files
server/shared/lib/Files/Node/INodeCollectionMutable.php
2025-12-21 10:09:54 -05:00

36 lines
669 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace KTXF\Files\Node;
/**
* Interface for mutable collection (folder) nodes
*/
interface INodeCollectionMutable extends INodeCollectionBase {
/**
* Deserialize from JSON data
*
* @since 2025.11.01
*
* @param array|string $data JSON data to deserialize
*
* @return static
*/
public function jsonDeserialize(array|string $data): static;
/**
* Sets the human-readable name/label of this collection
*
* @since 2025.11.01
*/
public function setLabel(string $value): static;
}