mirror of
https://github.com/danog/psalm.git
synced 2024-12-13 17:57:37 +01:00
27 lines
521 B
PHP
27 lines
521 B
PHP
<?php
|
|
namespace Psalm\Storage;
|
|
|
|
class Assertion
|
|
{
|
|
/**
|
|
* @var array<int, array<int, string>> the rule being asserted
|
|
*/
|
|
public $rule;
|
|
|
|
/**
|
|
* @var int|string the id of the property/variable, or
|
|
* the parameter offset of the affected arg
|
|
*/
|
|
public $var_id;
|
|
|
|
/**
|
|
* @param string|int $var_id
|
|
* @param array<int, array<int, string>> $rule
|
|
*/
|
|
public function __construct($var_id, $rule)
|
|
{
|
|
$this->rule = $rule;
|
|
$this->var_id = $var_id;
|
|
}
|
|
}
|