Location: PHPKode > scripts > Redstart Templating > Redstart-Templating-master/Redstart/Templating/Plugin/PluginListInterface.php
<?php

namespace Redstart\Templating\Plugin;

/**
 * Plugin List Interface
 *
 * @package Redstart    
 * @subpackage Redstart_Templating_Plugin
 *
 * @author Hyyan Abo Fakher
 * @since Redstart 1.0
 */
interface PluginListInterface extends \Countable, \Serializable, \IteratorAggregate {

    /**
     * Add plugin to the plugin list
     * @param \Redstart\Templating\PluginInterface $plugin
     * @throws \LogicException if plugin's name is in use
     */
    public function addPlugin(PluginInterface $plugin);

    /**
     * Set array of plugins
     * 
     * @see PluginListInterface::addPlugin()
     * 
     * @param array $plugins
     */
    public function setPlugin(array $plugins);
    
    
    /**
     * Add plugin list
     * @param \Redstart\Templating\Plugin\PluginListInterface $list
     */
    public function addPluginList(PluginListInterface $list);

    /**
     * Get plugin from the plugin list
     * @param strng $name plugin name 
     * @return \Redstart\Templating\PluginInterface
     */
    public function get($name);

    /**
     * Check if the plugin name is in the plugin list
     * @param string $name plugin name
     * @return boolean
     */
    public function has($name);

    /**
     * Remove plugn by name from the plugin set
     * @param string $name plugin name
     */
    public function remove($name);

    /**
     * Clear the plugin list
     */
    public function clear();
}

Return current item: Redstart Templating