1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 17:57:37 +01:00
psalm/tests/Config/Plugin/Hook/StringProvider/TSqlSelectString.php

27 lines
572 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 $nested = true): string
{
return 'sql-select-string(' . $this->value . ')';
}
public function canBeFullyExpressedInPhp(int $analysis_php_version_id): bool
{
return false;
}
}