mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-14 12:29:43 +01:00
31 lines
605 B
PHP
31 lines
605 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Transform\ValueObject;
|
|
|
|
use PHPStan\Type\ObjectType;
|
|
class ArrayDimFetchToMethodCall
|
|
{
|
|
/**
|
|
* @readonly
|
|
*/
|
|
private ObjectType $objectType;
|
|
/**
|
|
* @readonly
|
|
*/
|
|
private string $method;
|
|
public function __construct(ObjectType $objectType, string $method)
|
|
{
|
|
$this->objectType = $objectType;
|
|
$this->method = $method;
|
|
}
|
|
public function getObjectType() : ObjectType
|
|
{
|
|
return $this->objectType;
|
|
}
|
|
public function getMethod() : string
|
|
{
|
|
return $this->method;
|
|
}
|
|
}
|