REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.10 KB
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/Testing/PHPUnit/ValueObject/RectorTestResult.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\Testing\PHPUnit\ValueObject; use Rector\Contract\Rector\RectorInterface; use Rector\ValueObject\ProcessResult; /** * @api used in tests */ final class RectorTestResult { /** * @readonly * @var string */ private $changedContents; /** * @readonly * @var \Rector\ValueObject\ProcessResult */ private $processResult; public function __construct(string $changedContents, ProcessResult $processResult) { $this->changedContents = $changedContents; $this->processResult = $processResult; } public function getChangedContents() : string { return $this->changedContents; } /** * @return array<class-string<RectorInterface>> */ public function getAppliedRectorClasses() : array { $rectorClasses = []; foreach ($this->processResult->getFileDiffs() as $fileDiff) { $rectorClasses = \array_merge($rectorClasses, $fileDiff->getRectorClasses()); } \sort($rectorClasses); return \array_unique($rectorClasses); } }
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
RectorTestResult.php
1.10 KB
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).