mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 19:07:00 +01:00
24 lines
484 B
PHP
24 lines
484 B
PHP
|
<?php
|
||
|
namespace Psalm\Plugin\Hook;
|
||
|
|
||
|
use Psalm\CodeLocation;
|
||
|
use Psalm\StatementsSource;
|
||
|
|
||
|
interface MethodExistenceProviderInterface
|
||
|
{
|
||
|
/**
|
||
|
* @return array<string>
|
||
|
*/
|
||
|
public static function getClassLikeNames() : array;
|
||
|
|
||
|
/**
|
||
|
* @return ?bool
|
||
|
*/
|
||
|
public static function doesMethodExist(
|
||
|
string $fq_classlike_name,
|
||
|
string $method_name_lowercase,
|
||
|
StatementsSource $source = null,
|
||
|
CodeLocation $code_location = null
|
||
|
);
|
||
|
}
|