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