Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php declare(strict_types=1);
2
 
3
namespace Invoker;
4
 
5
use Invoker\Exception\InvocationException;
6
use Invoker\Exception\NotCallableException;
7
use Invoker\Exception\NotEnoughParametersException;
8
 
9
/**
10
 * Invoke a callable.
11
 */
12
interface InvokerInterface
13
{
14
    /**
15
     * Call the given function using the given parameters.
16
     *
17
     * @param callable|array|string $callable Function to call.
18
     * @param array $parameters Parameters to use.
19
     * @return mixed Result of the function.
20
     * @throws InvocationException Base exception class for all the sub-exceptions below.
21
     * @throws NotCallableException
22
     * @throws NotEnoughParametersException
23
     */
24
    public function call($callable, array $parameters = []);
25
}