2019-11-25 17:44:54 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Psalm;
|
|
|
|
|
|
|
|
use PhpParser;
|
2021-12-03 20:11:20 +01:00
|
|
|
use Psalm\Type\Union;
|
2019-11-25 17:44:54 +01:00
|
|
|
|
|
|
|
interface NodeTypeProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
|
|
|
|
*/
|
2021-12-05 18:51:26 +01:00
|
|
|
public function setType(PhpParser\NodeAbstract $node, Union $type): void;
|
2019-11-25 17:44:54 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
|
|
|
|
*/
|
2021-12-05 18:51:26 +01:00
|
|
|
public function getType(PhpParser\NodeAbstract $node): ?Union;
|
2019-11-25 17:44:54 +01:00
|
|
|
}
|