php-vfs/src/Node/Factory/NodeFactoryInterface.php

41 lines
925 B
PHP
Raw Normal View History

2014-07-06 16:31:39 +00:00
<?php
/*
* This file is part of VFS
*
* Copyright (c) 2015 Andrew Lawson <http://adlawson.com>
2014-07-06 16:31:39 +00:00
*
* 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
{
/**
2014-09-06 14:15:08 +00:00
* @param NodeInterface[] $children
2014-07-06 16:31:39 +00:00
* @return NodeContainerInterface
*/
public function buildDirectory(array $children = []);
/**
2014-09-06 14:15:08 +00:00
* @param string $content
2014-07-06 16:31:39 +00:00
* @return NodeInterface
*/
public function buildFile($content = '');
/**
2014-09-06 14:15:08 +00:00
* @param string $content
2014-07-06 16:31:39 +00:00
* @return NodeInterface
*/
public function buildLink($content = '');
/**
* @param array $tree
* @return NodeContainerInterface
*/
public function buildTree(array $tree);
2014-07-06 16:31:39 +00:00
}