PHP 8.2.31
Preview: InstalledPackage.php Size: 554 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/Composer/ValueObject/InstalledPackage.php

<?php

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

final class InstalledPackage
{
    /**
     * @readonly
     * @var string
     */
    private $name;
    /**
     * @readonly
     * @var string
     */
    private $version;
    public function __construct(string $name, string $version)
    {
        $this->name = $name;
        $this->version = $version;
    }
    public function getName() : string
    {
        return $this->name;
    }
    public function getVersion() : string
    {
        return $this->version;
    }
}

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
554 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

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