1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-09 22:49:31 +01:00
psalm/src/Psalm/Internal/Taint/Path.php

27 lines
509 B
PHP
Raw Normal View History

2020-06-22 08:10:03 +02:00
<?php
namespace Psalm\Internal\Taint;
/**
* @psalm-immutable
*/
2020-06-22 08:10:03 +02:00
class Path
{
public $type;
public $unescaped_taints;
public $escaped_taints;
/**
2020-06-26 01:12:30 +02:00
* @param ?array<string> $unescaped_taints
* @param ?array<string> $escaped_taints
2020-06-22 08:10:03 +02:00
*/
2020-06-26 01:12:30 +02:00
public function __construct(string $type, ?array $unescaped_taints, ?array $escaped_taints)
2020-06-22 08:10:03 +02:00
{
$this->type = $type;
$this->unescaped_taints = $unescaped_taints;
$this->escaped_taints = $escaped_taints;
}
}