1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
psalm/src/Psalm/StatementsSource.php

62 lines
1.4 KiB
PHP
Raw Normal View History

<?php
2016-07-26 00:37:44 +02:00
namespace Psalm;
2018-01-21 18:44:46 +01:00
interface StatementsSource extends FileSource
{
public function getNamespace(): ?string;
2016-11-21 04:02:26 +01:00
/**
* @return array<lowercase-string, string>
2016-11-21 04:02:26 +01:00
*/
public function getAliasedClassesFlipped(): array;
2016-11-21 04:02:26 +01:00
2019-06-06 04:13:33 +02:00
/**
* @return array<string, string>
*/
public function getAliasedClassesFlippedReplaceable(): array;
2019-06-06 04:13:33 +02:00
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;
2018-11-06 03:57:36 +01:00
public function getCodebase() : Codebase;
/**
* Get a list of suppressed issues
2016-11-02 07:29:00 +01:00
*
2018-02-22 00:59:31 +01:00
* @return array<string>
*/
public function getSuppressedIssues(): array;
/**
2020-10-17 18:36:44 +02:00
* @param list<string> $new_issues
*/
public function addSuppressedIssues(array $new_issues): void;
/**
2020-10-17 18:36:44 +02:00
* @param list<string> $new_issues
*/
public function removeSuppressedIssues(array $new_issues): void;
public function getNodeTypeProvider() : NodeTypeProvider;
}