2020-06-30 19:17:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Psalm\Internal\Analyzer;
|
|
|
|
|
2022-11-04 19:04:23 +01:00
|
|
|
use Psalm\Storage\ImmutableNonCloneableTrait;
|
|
|
|
|
2020-06-30 19:17:51 +02:00
|
|
|
/**
|
|
|
|
* @psalm-immutable
|
2022-01-03 07:55:32 +01:00
|
|
|
* @internal
|
2020-06-30 19:17:51 +02:00
|
|
|
*/
|
2023-10-26 17:00:29 +02:00
|
|
|
final class DataFlowNodeData
|
2020-06-30 19:17:51 +02:00
|
|
|
{
|
2022-11-04 19:04:23 +01:00
|
|
|
use ImmutableNonCloneableTrait;
|
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public int $line_from;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public int $line_to;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public string $label;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public string $file_name;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public string $file_path;
|
2021-11-07 14:38:42 +01:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public string $snippet;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public int $from;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public int $to;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public int $snippet_from;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public int $column_from;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
2022-12-14 01:52:54 +01:00
|
|
|
public int $column_to;
|
2020-06-30 19:17:51 +02:00
|
|
|
|
|
|
|
public function __construct(
|
2020-09-07 01:36:47 +02:00
|
|
|
string $label,
|
|
|
|
int $line_from,
|
|
|
|
int $line_to,
|
|
|
|
string $file_name,
|
2021-11-07 14:38:42 +01:00
|
|
|
string $file_path,
|
2020-09-07 01:36:47 +02:00
|
|
|
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;
|
2021-11-07 14:38:42 +01:00
|
|
|
$this->file_path = $file_path;
|
2020-06-30 19:17:51 +02:00
|
|
|
$this->snippet = $snippet;
|
|
|
|
$this->from = $from;
|
|
|
|
$this->to = $to;
|
|
|
|
$this->snippet_from = $snippet_from;
|
|
|
|
$this->column_from = $column_from;
|
|
|
|
$this->column_to = $column_to;
|
|
|
|
}
|
|
|
|
}
|