mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-09 17:41:24 +01:00
7d36c3b0b9
a80cf5292d
revert to working scoper 0.14
31 lines
674 B
PHP
31 lines
674 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Composer\ValueObject;
|
|
|
|
use Rector\Composer\Contract\VersionAwareInterface;
|
|
final class PackageAndVersion implements \Rector\Composer\Contract\VersionAwareInterface
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $packageName;
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $version;
|
|
public function __construct(string $packageName, string $version)
|
|
{
|
|
$this->packageName = $packageName;
|
|
$this->version = $version;
|
|
}
|
|
public function getPackageName() : string
|
|
{
|
|
return $this->packageName;
|
|
}
|
|
public function getVersion() : string
|
|
{
|
|
return $this->version;
|
|
}
|
|
}
|