Skip to content

Commit

Permalink
Add a new interface: ModifierInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 30, 2018
1 parent 1218e1e commit ad6ac2e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Modifier/ModifierInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types = 1);

namespace drupol\phptree\Modifier;

use drupol\phptree\Node\NodeInterface;

/**
* Interface ModifierInterface
*/
interface ModifierInterface
{
/**
* Modify the tree.
*
* @param NodeInterface $tree
* The original tree.
*
* @return NodeInterface
* A new tree.
*/
public function modify(NodeInterface $tree): NodeInterface;
}

0 comments on commit ad6ac2e

Please sign in to comment.