1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
psalm/src/Psalm/StatementsSource.php

103 lines
1.8 KiB
PHP
Raw Normal View History

<?php
2016-07-26 00:37:44 +02:00
namespace Psalm;
use Psalm\Checker\FileChecker;
2018-01-21 18:44:46 +01:00
interface StatementsSource extends FileSource
{
2016-10-14 06:53:43 +02:00
/**
2018-01-28 23:07:09 +01:00
* @return null|string
2016-10-14 06:53:43 +02:00
*/
public function getNamespace();
2016-11-21 04:02:26 +01:00
/**
* @return array<string, string>
2016-11-21 04:02:26 +01:00
*/
public function getAliasedClassesFlipped();
2016-10-14 06:53:43 +02:00
/**
2017-01-07 20:35:07 +01:00
* @return string|null
2016-10-14 06:53:43 +02:00
*/
2016-11-08 01:16:51 +01:00
public function getFQCLN();
2016-11-02 07:29:00 +01:00
/**
2017-01-07 20:35:07 +01:00
* @return string|null
2016-11-02 07:29:00 +01:00
*/
public function getClassName();
/**
* @return FileChecker
*/
public function getFileChecker();
/**
* @return string|null
*/
2017-01-07 20:35:07 +01:00
public function getParentFQCLN();
/**
* @param string $file_path
* @param string $file_name
*
* @return void
*/
public function addCheckedFilePath($file_path, $file_name);
/**
* @param string $file_path
*
* @return void
*/
public function removeCheckedFilePath($file_path);
/**
* @param string $file_path
*
* @return bool
*/
public function hasNestedFilePath($file_path);
/**
* @param string $file_path
*
* @return bool
*/
public function hasAlreadyIncludedFilePath($file_path);
/**
* @return int
*/
public function getIncludeNesting();
2016-10-14 06:53:43 +02:00
/**
* @return bool
*/
public function isStatic();
2016-10-14 06:53:43 +02:00
/**
* @return StatementsSource|null
*/
public function getSource();
/**
* 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();
/**
* @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);
}