mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-24 00:16:50 +00:00
Initial import
This commit is contained in:
commit
2295a33590
884 changed files with 93939 additions and 0 deletions
25
php/vendor/php-di/invoker/src/InvokerInterface.php
vendored
Normal file
25
php/vendor/php-di/invoker/src/InvokerInterface.php
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Invoker;
|
||||
|
||||
use Invoker\Exception\InvocationException;
|
||||
use Invoker\Exception\NotCallableException;
|
||||
use 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 = []);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue