opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
rules
/
Transform
/
ValueObject
➕ New
📤 Upload
✎ Editing:
StringToClassConstant.php
← Back
<?php declare (strict_types=1); namespace Rector\Transform\ValueObject; use Rector\Validation\RectorAssert; final class StringToClassConstant { /** * @readonly * @var string */ private $string; /** * @readonly * @var string */ private $class; /** * @readonly * @var string */ private $constant; public function __construct(string $string, string $class, string $constant) { $this->string = $string; $this->class = $class; $this->constant = $constant; RectorAssert::className($class); } public function getString() : string { return $this->string; } public function getClass() : string { return $this->class; } public function getConstant() : string { return $this->constant; } }
💾 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