1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00
psalm/src/Psalm/StatementsSource.php

116 lines
2.0 KiB
PHP
Raw Normal View History

<?php
2016-07-25 18:37:44 -04:00
namespace Psalm;
use Psalm\Checker\ClassLikeChecker;
use Psalm\Checker\FileChecker;
interface StatementsSource
{
2016-10-14 00:53:43 -04:00
/**
* @return string
*/
public function getNamespace();
2016-10-14 00:53:43 -04:00
/**
* @return array<string, string>
2016-10-14 00:53:43 -04:00
*/
public function getAliasedClasses();
2016-11-20 22:02:26 -05:00
/**
* @return array<string, string>
2016-11-20 22:02:26 -05:00
*/
public function getAliasedClassesFlipped();
2016-11-20 21:49:06 -05:00
/**
* Gets a list of all aliased constants
*
* @return array<string, string>
2016-11-20 21:49:06 -05:00
*/
public function getAliasedConstants();
/**
* Gets a list of all aliased functions
*
* @return array<string, string>
2016-11-20 21:49:06 -05:00
*/
public function getAliasedFunctions();
2016-10-14 00:53:43 -04:00
/**
* @return string
*/
2016-11-07 19:16:51 -05:00
public function getFQCLN();
2016-11-02 02:29:00 -04:00
/**
* @return string
*/
public function getClassName();
2016-11-02 02:29:00 -04:00
/**
* @return ClassLikeChecker
2016-11-02 02:29:00 -04:00
*/
public function getClassLikeChecker();
/**
* @return FileChecker
*/
public function getFileChecker();
/**
* @return string|null
*/
public function getParentClass();
2016-10-14 00:53:43 -04:00
/**
* @return string
*/
public function getFileName();
/**
* @return string
*/
public function getFilePath();
2016-10-14 00:53:43 -04:00
/**
2016-10-15 00:12:57 -04:00
* @return string|null
2016-10-14 00:53:43 -04:00
*/
2016-09-01 00:07:29 -04:00
public function getIncludeFileName();
/**
* @return string|null
*/
public function getIncludeFilePath();
2016-10-14 00:53:43 -04:00
/**
* @return string
*/
2016-09-01 00:07:29 -04:00
public function getCheckedFileName();
/**
* @return string
*/
public function getCheckedFilePath();
2016-08-24 19:00:44 -04:00
/**
* @param string|null $file_name
* @param string|null $file_path
2016-08-24 19:00:44 -04:00
*/
public function setIncludeFileName($file_name, $file_path);
2016-08-24 19:00:44 -04:00
2016-10-14 00:53:43 -04:00
/**
* @return bool
*/
public function isStatic();
2016-10-14 00:53:43 -04:00
/**
* @return StatementsSource|null
*/
public function getSource();
/**
* Get a list of suppressed issues
2016-11-02 02:29:00 -04:00
*
* @return array<int, string>
*/
public function getSuppressedIssues();
}