REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.42 KB
Close
/opt/cpanel/ea-wappspector/vendor/php-di/php-di/src/Definition/ObjectDefinition/PropertyInjection.php
Text
Base64
<?php declare(strict_types=1); namespace DI\Definition\ObjectDefinition; /** * Describe an injection in a class property. * * @author Matthieu Napoli <matthieu@mnapoli.fr> */ class PropertyInjection { private string $propertyName; /** * Value that should be injected in the property. */ private mixed $value; /** * Use for injecting in properties of parent classes: the class name * must be the name of the parent class because private properties * can be attached to the parent classes, not the one we are resolving. */ private ?string $className; /** * @param string $propertyName Property name * @param mixed $value Value that should be injected in the property */ public function __construct(string $propertyName, mixed $value, ?string $className = null) { $this->propertyName = $propertyName; $this->value = $value; $this->className = $className; } public function getPropertyName() : string { return $this->propertyName; } /** * @return mixed Value that should be injected in the property */ public function getValue() : mixed { return $this->value; } public function getClassName() : ?string { return $this->className; } public function replaceNestedDefinition(callable $replacer) : void { $this->value = $replacer($this->value); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
MethodInjection.php
1.61 KB
lrw-r--r--
2025-08-16 11:10:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PropertyInjection.php
1.42 KB
lrw-r--r--
2025-08-16 11:10:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).