Exception
5 years ago
ParameterResolver
5 years ago
Reflection
5 years ago
CallableResolver.php
5 years ago
Invoker.php
5 years ago
InvokerInterface.php
5 years ago
InvokerInterface.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Cybot\Dependencies\Invoker; |
| 4 | |
| 5 | use Cybot\Dependencies\Invoker\Exception\InvocationException; |
| 6 | use Cybot\Dependencies\Invoker\Exception\NotCallableException; |
| 7 | use Cybot\Dependencies\Invoker\Exception\NotEnoughParametersException; |
| 8 | |
| 9 | /** |
| 10 | * Invoke a callable. |
| 11 | * |
| 12 | * @author Matthieu Napoli <matthieu@mnapoli.fr> |
| 13 | */ |
| 14 | interface InvokerInterface |
| 15 | { |
| 16 | /** |
| 17 | * Call the given function using the given parameters. |
| 18 | * |
| 19 | * @param callable $callable Function to call. |
| 20 | * @param array $parameters Parameters to use. |
| 21 | * |
| 22 | * @return mixed Result of the function. |
| 23 | * |
| 24 | * @throws InvocationException Base exception class for all the sub-exceptions below. |
| 25 | * @throws NotCallableException |
| 26 | * @throws NotEnoughParametersException |
| 27 | */ |
| 28 | public function call($callable, array $parameters = array()); |
| 29 | } |
| 30 |