2019-04-26 00:02:19 +02:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2019-04-26 00:02:19 +02:00
|
|
|
namespace Psalm\Issue;
|
|
|
|
|
2021-12-03 20:11:20 +01:00
|
|
|
use Psalm\CodeLocation;
|
|
|
|
|
2019-06-26 22:52:29 +02:00
|
|
|
use function strtolower;
|
|
|
|
|
2019-04-26 00:02:19 +02:00
|
|
|
abstract class FunctionIssue extends CodeIssue
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $function_id;
|
|
|
|
|
|
|
|
public function __construct(
|
2020-09-07 01:36:47 +02:00
|
|
|
string $message,
|
2021-12-03 20:11:20 +01:00
|
|
|
CodeLocation $code_location,
|
2020-09-07 01:36:47 +02:00
|
|
|
string $function_id
|
2019-04-26 00:02:19 +02:00
|
|
|
) {
|
|
|
|
parent::__construct($message, $code_location);
|
|
|
|
$this->function_id = strtolower($function_id);
|
|
|
|
}
|
|
|
|
}
|