1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-06 04:59:14 +01:00
psalm/tests/Config/Plugin/Hook/StringProvider/TSqlSelectString.php
2022-01-22 19:34:57 +01:00

27 lines
592 B
PHP

<?php
namespace Psalm\Test\Config\Plugin\Hook\StringProvider;
use Psalm\Type\Atomic\TLiteralString;
/**
* Special type, specifically for consumption by plugins.
*/
class TSqlSelectString extends TLiteralString
{
public function getKey(bool $include_extra = true): string
{
return 'sql-select-string';
}
public function getId(bool $exact = true, bool $nested = true): string
{
return 'sql-select-string(' . $this->value . ')';
}
public function canBeFullyExpressedInPhp(int $analysis_php_version_id): bool
{
return false;
}
}