REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 782 B
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Transform/NodeFactory/PropertyFetchFactory.php
Text
Base64
<?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
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
PropertyFetchFactory.php
782 B
lrw-r--r--
2024-11-08 13:59:10
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).