1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 17:57:37 +01:00
psalm/src/Psalm/Internal/Analyzer/ControlFlowNodeData.php

119 lines
2.0 KiB
PHP
Raw Normal View History

<?php
namespace Psalm\Internal\Analyzer;
/**
* @psalm-immutable
*/
class ControlFlowNodeData
{
/**
* @var int
*/
public $line_from;
/**
* @var int
*/
public $line_to;
/**
* @var string
*/
public $label;
/**
* @var string
*/
public $entry_path_type;
/**
* @var ?string
*/
public $entry_path_description;
/**
* @var string
*/
public $file_name;
/**
* @var string
*/
public $file_path;
/**
* @var string
*/
public $snippet;
/**
* @var string
*/
public $selected_text;
/**
* @var int
*/
public $from;
/**
* @var int
*/
public $to;
/**
* @var int
*/
public $snippet_from;
/**
* @var int
*/
public $snippet_to;
/**
* @var int
*/
public $column_from;
/**
* @var int
*/
public $column_to;
public function __construct(
string $label,
string $entry_path_type,
?string $entry_path_description,
int $line_from,
int $line_to,
string $file_name,
string $file_path,
string $snippet,
string $selected_text,
int $from,
int $to,
int $snippet_from,
int $snippet_to,
int $column_from,
int $column_to
) {
$this->label = $label;
$this->entry_path_type = $entry_path_type;
$this->entry_path_description = $entry_path_description;
$this->line_from = $line_from;
$this->line_to = $line_to;
$this->file_name = $file_name;
$this->file_path = $file_path;
$this->snippet = $snippet;
$this->selected_text = $selected_text;
$this->from = $from;
$this->to = $to;
$this->snippet_from = $snippet_from;
$this->snippet_to = $snippet_to;
$this->column_from = $column_from;
$this->column_to = $column_to;
}
}