2017-02-08 06:28:26 +01:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2017-02-08 06:28:26 +01:00
|
|
|
namespace Psalm\Issue;
|
|
|
|
|
2022-12-11 10:49:09 +01:00
|
|
|
use Psalm\CodeLocation;
|
|
|
|
|
|
|
|
use function strtolower;
|
|
|
|
|
2022-02-05 23:27:18 +01:00
|
|
|
final class UnusedMethod extends MethodIssue
|
2017-02-08 06:28:26 +01:00
|
|
|
{
|
2020-09-20 18:54:46 +02:00
|
|
|
public const ERROR_LEVEL = -2;
|
|
|
|
public const SHORTCODE = 76;
|
2022-12-11 10:49:09 +01:00
|
|
|
|
|
|
|
public function __construct(
|
|
|
|
string $message,
|
|
|
|
CodeLocation $code_location,
|
|
|
|
string $method_id
|
|
|
|
) {
|
|
|
|
parent::__construct($message, $code_location, $method_id);
|
|
|
|
$this->dupe_key = strtolower($method_id);
|
|
|
|
}
|
2017-02-08 06:28:26 +01:00
|
|
|
}
|