🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 04:28:30 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
rules
/
Transform
/
NodeFactory
📍 /opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Transform/NodeFactory
🔄 Refresh
✏️
Editing: PropertyFetchFactory.php
Read Only
<?php declare (strict_types=1); namespace Rector\Transform\NodeFactory; use PhpParser\Node\Expr\PropertyFetch; use PhpParser\Node\Expr\Variable; use PHPStan\Type\ObjectType; use Rector\Naming\Naming\PropertyNaming; final class PropertyFetchFactory { /** * @readonly * @var \Rector\Naming\Naming\PropertyNaming */ private $propertyNaming; public function __construct(PropertyNaming $propertyNaming) { $this->propertyNaming = $propertyNaming; } public function createFromType(ObjectType $objectType) : PropertyFetch { $thisVariable = new Variable('this'); $propertyName = $this->propertyNaming->fqnToVariableName($objectType->getClassName()); return new PropertyFetch($thisVariable, $propertyName); } }
💾 Save Changes
❌ Cancel