1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-07 13:42:11 +01:00
psalm/tests/Config/Plugin/Hook/StringProvider/TSqlSelectString.php

27 lines
592 B
PHP
Raw Normal View History

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