mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-14 04:44:57 +01:00
25 lines
531 B
PHP
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;
|
|
}
|
|
}
|