1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 18:36:58 +01:00
psalm/tests/Config/Plugin/Hook/StringProvider/TSqlSelectString.php

24 lines
570 B
PHP
Raw Normal View History

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