2018-03-21 03:36:03 +01:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Issue;
|
|
|
|
|
2019-06-26 22:52:29 +02:00
|
|
|
use function strtolower;
|
|
|
|
|
2018-03-21 03:36:03 +01:00
|
|
|
abstract class MethodIssue extends CodeIssue
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $method_id;
|
|
|
|
|
|
|
|
public function __construct(
|
2020-09-07 01:36:47 +02:00
|
|
|
string $message,
|
2018-03-21 03:36:03 +01:00
|
|
|
\Psalm\CodeLocation $code_location,
|
2020-09-07 01:36:47 +02:00
|
|
|
string $method_id
|
2018-03-21 03:36:03 +01:00
|
|
|
) {
|
|
|
|
parent::__construct($message, $code_location);
|
2018-08-16 22:49:33 +02:00
|
|
|
$this->method_id = strtolower($method_id);
|
2018-03-21 03:36:03 +01:00
|
|
|
}
|
|
|
|
}
|