PHP 8.2.31
Preview: IntlBundleClassToNewClass.php Size: 1.23 KB
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/rector/rector-symfony/src/ValueObject/IntlBundleClassToNewClass.php

<?php

declare (strict_types=1);
namespace Rector\Symfony\ValueObject;

use Rector\Validation\RectorAssert;
use RectorPrefix202411\Webmozart\Assert\Assert;
final class IntlBundleClassToNewClass
{
    /**
     * @readonly
     * @var string
     */
    private $oldClass;
    /**
     * @readonly
     * @var string
     */
    private $newClass;
    /**
     * @var array<string, string>
     * @readonly
     */
    private $oldToNewMethods;
    /**
     * @param array<string, string> $oldToNewMethods
     */
    public function __construct(string $oldClass, string $newClass, array $oldToNewMethods)
    {
        $this->oldClass = $oldClass;
        $this->newClass = $newClass;
        $this->oldToNewMethods = $oldToNewMethods;
        RectorAssert::className($oldClass);
        RectorAssert::className($newClass);
        Assert::allString($oldToNewMethods);
        Assert::allString(\array_keys($oldToNewMethods));
    }
    public function getOldClass() : string
    {
        return $this->oldClass;
    }
    public function getNewClass() : string
    {
        return $this->newClass;
    }
    /**
     * @return array<string, string>
     */
    public function getOldToNewMethods() : array
    {
        return $this->oldToNewMethods;
    }
}

Directory Contents

Dirs: 4 × Files: 10

Name Size Perms Modified Actions
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Tag DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
593 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
859 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
848 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.04 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
600 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.23 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
714 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.73 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
3.31 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
723 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).