2019-03-07 20:56:18 +01:00
|
|
|
<?php
|
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
|
|
|
|
2020-09-12 17:24:05 +02:00
|
|
|
public function getId(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
|
|
|
|
2020-11-21 00:46:35 +01:00
|
|
|
public function canBeFullyExpressedInPhp(int $php_major_version, int $php_minor_version): bool
|
2019-03-07 20:56:18 +01:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|