Файл: concrete5.7.5.6/concrete/vendor/pagerfanta/pagerfanta/src/Pagerfanta/View/ViewFactoryInterface.php
Строк: 62
<?php
/*
* This file is part of the Pagerfanta package.
*
* (c) Pablo Díez <pablodip@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PagerfantaView;
/**
* ViewFactoryInterface.
*
* @author Pablo Díez <pablodip@gmail.com>
*/
interface ViewFactoryInterface
{
/**
* Sets a view.
*
* @param string $name The view name.
* @param ViewInterface $view The view.
*/
function set($name, ViewInterface $view);
/**
* Returns whether a view exists or not.
*
* @param string $name The name.
*
* @return Boolean Whether a view exists or not.
*/
function has($name);
/**
* Adds views.
*
* @param array $views An array of views.
*/
function add(array $views);
/**
* Returns a view.
*
* @param string $name The name.
*
* @return ViewInterface The view.
*
* @throws InvalidArgumentException If the view does not exist.
*/
function get($name);
/**
* Returns all the views.
*
* @return array The views.
*/
function all();
/**
* Removes a view.
*
* @param string $name The name.
*
* @throws InvalidArgumentException If the view does not exist.
*/
function remove($name);
/**
* Clears the views.
*/
function clear();
}