2020-06-30 19:17:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Psalm\Internal\Analyzer;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-immutable
|
|
|
|
*/
|
2020-10-13 22:49:03 +02:00
|
|
|
class DataFlowNodeData
|
2020-06-30 19:17:51 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $line_from;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $line_to;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $label;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $file_name;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $snippet;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $from;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $to;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $snippet_from;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $column_from;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $column_to;
|
|
|
|
|
|
|
|
public function __construct(
|
2020-09-07 01:36:47 +02:00
|
|
|
string $label,
|
|
|
|
int $line_from,
|
|
|
|
int $line_to,
|
|
|
|
string $file_name,
|
|
|
|
string $snippet,
|
|
|
|
int $from,
|
|
|
|
int $to,
|
|
|
|
int $snippet_from,
|
|
|
|
int $column_from,
|
|
|
|
int $column_to
|
2020-06-30 19:17:51 +02:00
|
|
|
) {
|
|
|
|
$this->label = $label;
|
|
|
|
$this->line_from = $line_from;
|
|
|
|
$this->line_to = $line_to;
|
|
|
|
$this->file_name = $file_name;
|
|
|
|
$this->snippet = $snippet;
|
|
|
|
$this->from = $from;
|
|
|
|
$this->to = $to;
|
|
|
|
$this->snippet_from = $snippet_from;
|
|
|
|
$this->column_from = $column_from;
|
|
|
|
$this->column_to = $column_to;
|
|
|
|
}
|
|
|
|
}
|