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

96 lines
1.7 KiB
PHP

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