mirror of
https://github.com/danog/psalm.git
synced 2024-12-13 09:47:29 +01:00
19 lines
452 B
PHP
19 lines
452 B
PHP
<?php
|
|
|
|
namespace Psalm;
|
|
|
|
use PhpParser;
|
|
|
|
interface NodeTypeProvider
|
|
{
|
|
/**
|
|
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
|
|
*/
|
|
public function setType(PhpParser\NodeAbstract $node, \Psalm\Type\Union $type) : void;
|
|
|
|
/**
|
|
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
|
|
*/
|
|
public function getType(PhpParser\NodeAbstract $node) : ?\Psalm\Type\Union;
|
|
}
|