2019-03-07 20:56:18 +01:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2019-05-21 05:14:41 +02:00
|
|
|
namespace Psalm\Test\Config\Plugin\Hook\StringProvider;
|
|
|
|
|
2021-12-03 20:11:20 +01:00
|
|
|
use Psalm\Type\Atomic\TLiteralString;
|
|
|
|
|
2020-11-30 03:41:36 +01:00
|
|
|
/**
|
|
|
|
* Special type, specifically for consumption by plugins.
|
|
|
|
*/
|
2021-12-03 20:11:20 +01:00
|
|
|
class TSqlSelectString extends TLiteralString
|
2019-03-07 20:56:18 +01:00
|
|
|
{
|
2021-12-05 18:51:26 +01:00
|
|
|
public function getKey(bool $include_extra = true): string
|
2019-03-07 20:56:18 +01:00
|
|
|
{
|
|
|
|
return 'sql-select-string';
|
|
|
|
}
|
2019-07-05 22:24:00 +02:00
|
|
|
|
2022-01-16 16:07:56 +01:00
|
|
|
public function getId(bool $exact = true, bool $nested = true): string
|
2019-03-07 20:56:18 +01:00
|
|
|
{
|
|
|
|
return 'sql-select-string(' . $this->value . ')';
|
|
|
|
}
|
2019-07-05 22:24:00 +02:00
|
|
|
|
2021-11-12 02:29:17 +01:00
|
|
|
public function canBeFullyExpressedInPhp(int $analysis_php_version_id): bool
|
2019-03-07 20:56:18 +01:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|