D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
grafana
/
vendor
/
php-di
/
invoker
/
src
/
Filename :
InvokerInterface.php
back
Copy
<?php declare (strict_types=1); namespace PleskGrafana\Invoker; use PleskGrafana\Invoker\Exception\InvocationException; use PleskGrafana\Invoker\Exception\NotCallableException; use PleskGrafana\Invoker\Exception\NotEnoughParametersException; /** * Invoke a callable. */ interface InvokerInterface { /** * Call the given function using the given parameters. * * @param callable|array|string $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 = []); }