芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/vendor/php-di/php-di/src/Definition/InstanceDefinition.php
*/ 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'; } }