Your IP : 216.73.216.44


Current Path : /home/krobertfnz/www/wp-content/plugins/wp-defender/lib/packages/Invoker/
Upload File :
Current File : /home/krobertfnz/www/wp-content/plugins/wp-defender/lib/packages/Invoker/InvokerInterface.php

<?php

namespace WPMU_DEV\Defender\Vendor\Invoker;

use WPMU_DEV\Defender\Vendor\Invoker\Exception\InvocationException;
use WPMU_DEV\Defender\Vendor\Invoker\Exception\NotCallableException;
use WPMU_DEV\Defender\Vendor\Invoker\Exception\NotEnoughParametersException;

/**
 * Invoke a callable.
 *
 * @author Matthieu Napoli <matthieu@mnapoli.fr>
 */
interface InvokerInterface
{
    /**
     * Call the given function using the given parameters.
     *
     * @param callable $callable   Function to call.
     * @param array    $parameters Parameters to use.
     *
     * @return mixed Result of the function.
     *
     * @throws InvocationException Base exception class for all the sub-exceptions below.
     * @throws NotCallableException
     * @throws NotEnoughParametersException
     */
    public function call($callable, array $parameters = array());
}