opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
rules
/
Transform
/
NodeFactory
➕ New
📤 Upload
✎ Editing:
PropertyFetchFactory.php
← Back
<?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
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel