mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-14 04:44:57 +01:00
35 lines
565 B
PHP
35 lines
565 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Rector\Composer\ValueObject;
|
||
|
|
||
|
final class PackageAndVersion
|
||
|
{
|
||
|
/**
|
||
|
* @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;
|
||
|
}
|
||
|
}
|