Initial Version
This commit is contained in:
35
shared/lib/Files/Node/INodeCollectionMutable.php
Normal file
35
shared/lib/Files/Node/INodeCollectionMutable.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user