2019-11-25 17:44:54 +01:00
|
|
|
<?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;
|
2019-11-25 17:44:54 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @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;
|
2019-11-25 17:44:54 +01:00
|
|
|
}
|