1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
psalm/src/Psalm/Internal/Analyzer/DataFlowNodeData.php

63 lines
1.2 KiB
PHP
Raw Normal View History

<?php
namespace Psalm\Internal\Analyzer;
use Psalm\Storage\ImmutableNonCloneableTrait;
/**
* @psalm-immutable
2022-01-03 07:55:32 +01:00
* @internal
*/
2023-10-26 17:00:29 +02:00
final class DataFlowNodeData
{
use ImmutableNonCloneableTrait;
2022-12-14 01:52:54 +01:00
public int $line_from;
2022-12-14 01:52:54 +01:00
public int $line_to;
2022-12-14 01:52:54 +01:00
public string $label;
2022-12-14 01:52:54 +01:00
public string $file_name;
2022-12-14 01:52:54 +01:00
public string $file_path;
2022-12-14 01:52:54 +01:00
public string $snippet;
2022-12-14 01:52:54 +01:00
public int $from;
2022-12-14 01:52:54 +01:00
public int $to;
2022-12-14 01:52:54 +01:00
public int $snippet_from;
2022-12-14 01:52:54 +01:00
public int $column_from;
2022-12-14 01:52:54 +01:00
public int $column_to;
public function __construct(
string $label,
int $line_from,
int $line_to,
string $file_name,
string $file_path,
string $snippet,
int $from,
int $to,
int $snippet_from,
int $column_from,
int $column_to
) {
$this->label = $label;
$this->line_from = $line_from;
$this->line_to = $line_to;
$this->file_name = $file_name;
$this->file_path = $file_path;
$this->snippet = $snippet;
$this->from = $from;
$this->to = $to;
$this->snippet_from = $snippet_from;
$this->column_from = $column_from;
$this->column_to = $column_to;
}
}