1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 17:52:45 +01:00
psalm/tests/Config/Plugin/Hook/StringProvider/TSqlSelectString.php
orklah b60c42adca
improve Atomic Types documentation (#4735)
* improve Atomic Types documentation

* add doc

* add doc
2020-11-29 21:41:36 -05:00

24 lines
570 B
PHP

<?php
namespace Psalm\Test\Config\Plugin\Hook\StringProvider;
/**
* Special type, specifically for consumption by plugins.
*/
class TSqlSelectString extends \Psalm\Type\Atomic\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 $php_major_version, int $php_minor_version): bool
{
return false;
}
}