rector/rules/DependencyInjection/Collector/VariablesToPropertyFetchCollection.php
2021-05-10 22:23:08 +00:00

25 lines
531 B
PHP

<?php
declare (strict_types=1);
namespace Rector\DependencyInjection\Collector;
use PHPStan\Type\Type;
final class VariablesToPropertyFetchCollection
{
/**
* @var Type[]
*/
private $variableNameAndType = [];
public function addVariableNameAndType(string $name, \PHPStan\Type\Type $type) : void
{
$this->variableNameAndType[$name] = $type;
}
/**
* @return Type[]
*/
public function getVariableNamesAndTypes() : array
{
return $this->variableNameAndType;
}
}