mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
25 lines
579 B
PHP
25 lines
579 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\DependencyInjection\Collector;
|
|
|
|
use PHPStan\Type\ObjectType;
|
|
final class VariablesToPropertyFetchCollection
|
|
{
|
|
/**
|
|
* @var array<string, ObjectType>
|
|
*/
|
|
private $variableNameAndType = [];
|
|
public function addVariableNameAndType(string $name, ObjectType $objectType) : void
|
|
{
|
|
$this->variableNameAndType[$name] = $objectType;
|
|
}
|
|
/**
|
|
* @return array<string, ObjectType>
|
|
*/
|
|
public function getVariableNamesAndTypes() : array
|
|
{
|
|
return $this->variableNameAndType;
|
|
}
|
|
}
|