mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
39402c233d
Co-authored-by: ralila <>
20 lines
448 B
PHP
20 lines
448 B
PHP
<?php
|
|
|
|
namespace Psalm;
|
|
|
|
use PhpParser;
|
|
use Psalm\Type\Union;
|
|
|
|
interface NodeTypeProvider
|
|
{
|
|
/**
|
|
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
|
|
*/
|
|
public function setType(PhpParser\NodeAbstract $node, Union $type): void;
|
|
|
|
/**
|
|
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
|
|
*/
|
|
public function getType(PhpParser\NodeAbstract $node): ?Union;
|
|
}
|