1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 02:07:37 +01:00
psalm/src/Psalm/NodeTypeProvider.php

19 lines
406 B
PHP

<?php
namespace Psalm;
use PhpParser;
interface NodeTypeProvider
{
/**
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
*/
public function setType($node, \Psalm\Type\Union $type) : void;
/**
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
*/
public function getType($node) : ?\Psalm\Type\Union;
}