1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 10:57:08 +01:00
psalm/src/Psalm/NodeTypeProvider.php

19 lines
452 B
PHP
Raw Normal View History

<?php
namespace Psalm;
use PhpParser;
interface NodeTypeProvider
{
/**
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
*/
2020-10-12 21:46:47 +02:00
public function setType(PhpParser\NodeAbstract $node, \Psalm\Type\Union $type) : void;
/**
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
*/
2020-10-12 21:46:47 +02:00
public function getType(PhpParser\NodeAbstract $node) : ?\Psalm\Type\Union;
}