1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 17:57:37 +01:00
psalm/src/Psalm/Scope/LoopScope.php
2017-12-17 10:58:03 -05:00

55 lines
971 B
PHP

<?php
namespace Psalm\Scope;
use Psalm\Context;
use Psalm\Type;
class LoopScope
{
/**
* @var Context
*/
public $loop_context;
/**
* @var Context
*/
public $loop_parent_context;
/**
* @var array<string, Type\Union>|null
*/
public $redefined_loop_vars = [];
/**
* @var array<string, Type\Union>
*/
public $possibly_redefined_loop_vars = [];
/**
* @var array<string, Type\Union>|null
*/
public $possibly_redefined_loop_parent_vars = null;
/**
* @var array<string, bool>
*/
public $vars_possibly_in_scope = [];
/**
* @var array<string, bool>
*/
public $protected_var_ids = [];
/**
* @var string[]
*/
public $final_actions = [];
public function __construct(Context $loop_context, Context $parent_context)
{
$this->loop_context = $loop_context;
$this->loop_parent_context = $parent_context;
}
}