1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 18:36:58 +01:00
psalm/src/Psalm/StatementsSource.php
orklah 09fb141e49
Document lowercase-string when possible (#4904)
* document lowercase-string

* fix missing strtolower
2020-12-29 11:42:12 +00:00

62 lines
1.4 KiB
PHP

<?php
namespace Psalm;
interface StatementsSource extends FileSource
{
public function getNamespace(): ?string;
/**
* @return array<lowercase-string, string>
*/
public function getAliasedClassesFlipped(): array;
/**
* @return array<string, string>
*/
public function getAliasedClassesFlippedReplaceable(): array;
public function getFQCLN(): ?string;
public function getClassName(): ?string;
public function getParentFQCLN(): ?string;
/**
* @return array<string, array<string, Type\Union>>|null
*/
public function getTemplateTypeMap(): ?array;
public function setRootFilePath(string $file_path, string $file_name): void;
public function hasParentFilePath(string $file_path): bool;
public function hasAlreadyRequiredFilePath(string $file_path): bool;
public function getRequireNesting(): int;
public function isStatic(): bool;
public function getSource(): StatementsSource;
public function getCodebase() : Codebase;
/**
* Get a list of suppressed issues
*
* @return array<string>
*/
public function getSuppressedIssues(): array;
/**
* @param list<string> $new_issues
*/
public function addSuppressedIssues(array $new_issues): void;
/**
* @param list<string> $new_issues
*/
public function removeSuppressedIssues(array $new_issues): void;
public function getNodeTypeProvider() : NodeTypeProvider;
}