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;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $message
|
|
|
|
* @param \Psalm\CodeLocation $code_location
|
|
|
|
* @param string $method_id
|
|
|
|
*/
|
|
|
|
public function __construct(
|
|
|
|
$message,
|
|
|
|
\Psalm\CodeLocation $code_location,
|
|
|
|
$method_id
|
|
|
|
) {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|