/opt/cpanel/ea-wappspector/vendor/php-di/php-di/src/Definition
NameSizeModeActions
Dumper/-0755rm
Exception/-0755rm
Helper/-0755rm
ObjectDefinition/-0755rm
Resolver/-0755rm
Source/-0755rm
ArrayDefinition.php13390644editdlrm
ArrayDefinitionExtension.php10170644editdlrm
AutowireDefinition.php1700644editdlrm
DecoratorDefinition.php7820644editdlrm
Definition.php8470644editdlrm
EnvironmentVariableDefinition.php25640644editdlrm
ExtendsPreviousDefinition.php3230644editdlrm
FactoryDefinition.php17580644editdlrm
InstanceDefinition.php11460644editdlrm
ObjectDefinition.php64480644editdlrm
Reference.php13160644editdlrm
SelfResolvingDefinition.php5280644editdlrm
StringDefinition.php22590644editdlrm
ValueDefinition.php11400644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/php-di/php-di/src/Definition/FactoryDefinition.php (1758B)
*/ class FactoryDefinition implements Definition { /** * Entry name. */ private string $name; /** * Callable that returns the value. * @var callable */ private $factory; /** * Factory parameters. * @var mixed[] */ private array $parameters; /** * @param string $name Entry name * @param callable|array|string $factory Callable that returns the value associated to the entry name. * @param array $parameters Parameters to be passed to the callable */ public function __construct(string $name, callable|array|string $factory, array $parameters = []) { $this->name = $name; $this->factory = $factory; $this->parameters = $parameters; } public function getName() : string { return $this->name; } public function setName(string $name) : void { $this->name = $name; } /** * @return callable|array|string Callable that returns the value associated to the entry name. */ public function getCallable() : callable|array|string { return $this->factory; } /** * @return array Array containing the parameters to be passed to the callable, indexed by name. */ public function getParameters() : array { return $this->parameters; } public function replaceNestedDefinitions(callable $replacer) : void { $this->parameters = array_map($replacer, $this->parameters); } public function __toString() : string { return 'Factory'; } }