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

84 lines
1.3 KiB
PHP
Raw Normal View History

<?php
namespace Psalm\Internal\Analyzer;
/**
* @psalm-immutable
*/
class DataFlowNodeData
{
/**
* @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(
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
) {
$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;
}
}