# betterdocs/3.8.9/includes/Dependencies/Invoker/InvokerInterface.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 3.8.9. 26 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/3.8.9/code/includes/Dependencies/Invoker/InvokerInterface.php
- Raw: https://pluginprobe.com/plugins/betterdocs/3.8.9/raw/includes/Dependencies/Invoker/InvokerInterface.php
- Modified: 2023-08-14T08:41:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/3.8.9/code/includes/Dependencies/Invoker/InvokerInterface.php#L10-L20`.

```php
<?php declare(strict_types=1);

namespace WPDeveloper\BetterDocs\Dependencies\Invoker;

use WPDeveloper\BetterDocs\Dependencies\Invoker\Exception\InvocationException;
use WPDeveloper\BetterDocs\Dependencies\Invoker\Exception\NotCallableException;
use WPDeveloper\BetterDocs\Dependencies\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 = []);
}

```
