PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.4.0
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.4.0
4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.5.2 All 199 releases
betterdocs / includes / Dependencies / DI / FactoryInterface.php

FactoryInterface.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.4.0, at includes/Dependencies/DI/FactoryInterface.php

32 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace WPDeveloper\BetterDocs\Dependencies\DI;
6
7 /**
8 * Describes the basic interface of a factory.
9 *
10 * @api
11 *
12 * @since 4.0
13 * @author Matthieu Napoli <matthieu@mnapoli.fr>
14 */
15 interface FactoryInterface
16 {
17 /**
18 * Resolves an entry by its name. If given a class name, it will return a new instance of that class.
19 *
20 * @param string $name Entry name or a class name.
21 * @param array $parameters Optional parameters to use to build the entry. Use this to force specific
22 * parameters to specific values. Parameters not defined in this array will
23 * be automatically resolved.
24 *
25 * @throws \InvalidArgumentException The name parameter must be of type string.
26 * @throws DependencyException Error while resolving the entry.
27 * @throws NotFoundException No entry or class found for the given name.
28 * @return mixed
29 */
30 public function make($name, array $parameters = []);
31 }
32