Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/elementor/vendor_prefixed/php-di/php-di/src/Definition/InstanceDefinition.php
Назад
<?php declare (strict_types=1); namespace ElementorDeps\DI\Definition; /** * Defines injections on an existing class instance. * * @since 5.0 * @author Matthieu Napoli <matthieu@mnapoli.fr> */ class InstanceDefinition implements Definition { /** * Instance on which to inject dependencies. * * @var object */ private $instance; /** * @var ObjectDefinition */ private $objectDefinition; /** * @param object $instance */ public function __construct($instance, ObjectDefinition $objectDefinition) { $this->instance = $instance; $this->objectDefinition = $objectDefinition; } public function getName() : string { // Name are superfluous for instance definitions return ''; } public function setName(string $name) { // Name are superfluous for instance definitions } /** * @return object */ public function getInstance() { return $this->instance; } public function getObjectDefinition() : ObjectDefinition { return $this->objectDefinition; } public function replaceNestedDefinitions(callable $replacer) { $this->objectDefinition->replaceNestedDefinitions($replacer); } public function __toString() { return 'Instance'; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка