1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00
psalm/src/Psalm/Plugin.php

70 lines
1.9 KiB
PHP
Raw Normal View History

2016-06-18 14:45:55 -04:00
<?php
2016-07-25 18:37:44 -04:00
namespace Psalm;
2016-06-18 14:45:55 -04:00
use PhpParser;
use Psalm\Checker\ClassLikeChecker;
use Psalm\Checker\StatementsChecker;
use Psalm\Storage\ClassLikeStorage;
2016-06-18 14:45:55 -04:00
abstract class Plugin
{
/**
2016-11-02 02:29:00 -04:00
* Checks an expression
*
* @param StatementsChecker $statements_checker
2016-06-18 14:45:55 -04:00
* @param PhpParser\Node\Expr $stmt
2016-06-20 01:29:30 -04:00
* @param Context $context
* @param CodeLocation $code_location
* @param array $suppressed_issues
2017-05-26 20:16:18 -04:00
*
2016-06-18 14:45:55 -04:00
* @return null|false
*/
public function checkExpression(
StatementsChecker $statements_checker,
PhpParser\Node\Expr $stmt,
Context $context,
CodeLocation $code_location,
array $suppressed_issues
) {
2016-11-02 02:29:00 -04:00
return null;
2016-06-18 14:45:55 -04:00
}
/**
2016-11-02 02:29:00 -04:00
* Checks a statement
*
* @param StatementsChecker $statements_checker
2016-12-12 13:50:46 -05:00
* @param PhpParser\Node\Stmt|PhpParser\Node\Expr $stmt
* @param Context $context
* @param CodeLocation $code_location
* @param array $suppressed_issues
2017-05-26 20:16:18 -04:00
*
2016-06-18 14:45:55 -04:00
* @return null|false
*/
public function checkStatement(
StatementsChecker $statements_checker,
PhpParser\Node $stmt,
Context $context,
CodeLocation $code_location,
array $suppressed_issues
) {
2016-11-02 02:29:00 -04:00
return null;
2016-06-18 14:45:55 -04:00
}
/**
* @param ClassLikeChecker $statements_checker
* @param ClassLikeStorage $storage
2017-05-05 00:06:46 -04:00
* @param PhpParser\Node\Stmt\ClassLike $stmt
* @param CodeLocation $code_location
2017-05-26 20:16:18 -04:00
*
* @return null|false
*/
public function visitClassLike(
ClassLikeChecker $statements_checker,
2017-05-05 00:06:46 -04:00
PhpParser\Node\Stmt\ClassLike $stmt,
ClassLikeStorage $storage,
CodeLocation $code_location
) {
return null;
}
2016-06-18 14:45:55 -04:00
}