1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 10:57:08 +01:00
psalm/src/Psalm/Plugin/Hook/MethodExistenceProviderInterface.php
2021-06-07 10:46:56 -04:00

27 lines
809 B
PHP

<?php
namespace Psalm\Plugin\Hook;
use Psalm\CodeLocation;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface MethodExistenceProviderInterface
{
/**
* @return array<string>
*/
public static function getClassLikeNames() : array;
/**
* Use this hook for informing whether or not a method exists on a given object. If you know the method does
* not exist, return false. If you aren't sure if it exists or not, return null and the default analysis will
* continue to determine if the method actually exists.
*/
public static function doesMethodExist(
string $fq_classlike_name,
string $method_name_lowercase,
?StatementsSource $source = null,
?CodeLocation $code_location = null
): ?bool;
}