opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
rules
/
Transform
/
ValueObject
➕ New
📤 Upload
✎ Editing:
FuncCallToMethodCall.php
← Back
<?php declare (strict_types=1); namespace Rector\Transform\ValueObject; use PHPStan\Type\ObjectType; use Rector\Validation\RectorAssert; final class FuncCallToMethodCall { /** * @readonly * @var string */ private $oldFuncName; /** * @readonly * @var string */ private $newClassName; /** * @readonly * @var string */ private $newMethodName; public function __construct(string $oldFuncName, string $newClassName, string $newMethodName) { $this->oldFuncName = $oldFuncName; $this->newClassName = $newClassName; $this->newMethodName = $newMethodName; RectorAssert::functionName($oldFuncName); RectorAssert::className($newClassName); RectorAssert::methodName($newMethodName); } public function getOldFuncName() : string { return $this->oldFuncName; } public function getNewObjectType() : ObjectType { return new ObjectType($this->newClassName); } public function getNewMethodName() : string { return $this->newMethodName; } }
💾 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