mirror of
https://github.com/adlawson/php-vfs.git
synced 2024-05-30 15:10:50 +00:00
feaf925bec
They're not needed to inherit parent documentation and are overly all up in my grill.
41 lines
925 B
PHP
41 lines
925 B
PHP
<?php
|
|
/*
|
|
* This file is part of VFS
|
|
*
|
|
* Copyright (c) 2014 Andrew Lawson <http://adlawson.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
namespace Vfs\Node\Factory;
|
|
|
|
use Vfs\Node\NodeContainerInterface;
|
|
use Vfs\Node\NodeInterface;
|
|
|
|
interface NodeFactoryInterface
|
|
{
|
|
/**
|
|
* @param NodeInterface[] $children
|
|
* @return NodeContainerInterface
|
|
*/
|
|
public function buildDirectory(array $children = []);
|
|
|
|
/**
|
|
* @param string $content
|
|
* @return NodeInterface
|
|
*/
|
|
public function buildFile($content = '');
|
|
|
|
/**
|
|
* @param string $content
|
|
* @return NodeInterface
|
|
*/
|
|
public function buildLink($content = '');
|
|
|
|
/**
|
|
* @param array $tree
|
|
* @return NodeContainerInterface
|
|
*/
|
|
public function buildTree(array $tree);
|
|
}
|