2016-01-19 18:27:06 -05:00
|
|
|
<?php
|
2016-07-25 18:37:44 -04:00
|
|
|
namespace Psalm;
|
2016-01-19 18:27:06 -05:00
|
|
|
|
|
|
|
interface StatementsSource
|
|
|
|
{
|
2016-10-14 00:53:43 -04:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2016-01-19 18:27:06 -05:00
|
|
|
public function getNamespace();
|
|
|
|
|
2016-10-14 00:53:43 -04:00
|
|
|
/**
|
2016-12-24 18:23:22 +00:00
|
|
|
* @return array<string, string>
|
2016-10-14 00:53:43 -04:00
|
|
|
*/
|
2016-01-19 18:27:06 -05:00
|
|
|
public function getAliasedClasses();
|
|
|
|
|
2016-11-20 22:02:26 -05:00
|
|
|
/**
|
|
|
|
* @return array<string>
|
|
|
|
*/
|
|
|
|
public function getAliasedClassesFlipped();
|
|
|
|
|
2016-11-20 21:49:06 -05:00
|
|
|
/**
|
|
|
|
* Gets a list of all aliased constants
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getAliasedConstants();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a list of all aliased functions
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
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-01-19 18:27:06 -05:00
|
|
|
|
2016-11-02 02:29:00 -04:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2016-01-19 18:27:06 -05:00
|
|
|
public function getClassName();
|
|
|
|
|
2016-11-02 02:29:00 -04:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2016-08-13 14:20:46 -04:00
|
|
|
public function getClassLikeChecker();
|
2016-01-29 18:48:09 -05:00
|
|
|
|
2016-01-19 18:27:06 -05:00
|
|
|
/**
|
2016-10-09 17:54:58 -04:00
|
|
|
* @return string|null
|
2016-01-19 18:27:06 -05:00
|
|
|
*/
|
2016-04-17 11:22:18 -04:00
|
|
|
public function getParentClass();
|
2016-01-19 18:27:06 -05:00
|
|
|
|
2016-10-14 00:53:43 -04:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2016-01-19 18:27:06 -05:00
|
|
|
public function getFileName();
|
|
|
|
|
2016-12-03 19:11:30 -05:00
|
|
|
/**
|
|
|
|
* @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();
|
|
|
|
|
2016-12-03 19:11:30 -05:00
|
|
|
/**
|
|
|
|
* @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();
|
|
|
|
|
2016-12-03 19:11:30 -05:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getCheckedFilePath();
|
|
|
|
|
2016-08-24 19:00:44 -04:00
|
|
|
/**
|
2016-10-09 17:54:58 -04:00
|
|
|
* @param string|null $file_name
|
2016-12-03 19:11:30 -05:00
|
|
|
* @param string|null $file_path
|
2016-08-24 19:00:44 -04:00
|
|
|
*/
|
2016-12-03 19:11:30 -05: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
|
|
|
|
*/
|
2016-01-19 18:27:06 -05:00
|
|
|
public function isStatic();
|
2016-05-15 23:06:03 -04:00
|
|
|
|
2016-10-14 00:53:43 -04:00
|
|
|
/**
|
|
|
|
* @return StatementsSource|null
|
|
|
|
*/
|
2016-05-15 23:06:03 -04:00
|
|
|
public function getSource();
|
2016-07-22 13:29:46 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get a list of suppressed issues
|
2016-11-02 02:29:00 -04:00
|
|
|
*
|
2016-10-09 17:54:58 -04:00
|
|
|
* @return array<string>
|
2016-07-22 13:29:46 -04:00
|
|
|
*/
|
|
|
|
public function getSuppressedIssues();
|
2016-01-19 18:27:06 -05:00
|
|
|
}
|