rector/vendor/rector/rector-phpoffice/src/ValueObject/ConditionalSetValue.php
Tomas Votruba aa2cb1b997 Updated Rector to commit 0eba231b07
0eba231b07 [PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444)
2022-06-06 17:12:56 +00:00

62 lines
1.3 KiB
PHP

<?php
declare (strict_types=1);
namespace Rector\PHPOffice\ValueObject;
final class ConditionalSetValue
{
/**
* @readonly
* @var string
*/
private $oldMethod;
/**
* @readonly
* @var string
*/
private $newGetMethod;
/**
* @readonly
* @var string
*/
private $newSetMethod;
/**
* @readonly
* @var int
*/
private $argPosition;
/**
* @readonly
* @var bool
*/
private $hasRow;
public function __construct(string $oldMethod, string $newGetMethod, string $newSetMethod, int $argPosition, bool $hasRow)
{
$this->oldMethod = $oldMethod;
$this->newGetMethod = $newGetMethod;
$this->newSetMethod = $newSetMethod;
$this->argPosition = $argPosition;
$this->hasRow = $hasRow;
}
public function getOldMethod() : string
{
return $this->oldMethod;
}
public function getArgPosition() : int
{
return $this->argPosition;
}
public function getNewGetMethod() : string
{
return $this->newGetMethod;
}
public function getNewSetMethod() : string
{
return $this->newSetMethod;
}
public function hasRow() : bool
{
return $this->hasRow;
}
}