2019-03-07 20:56:18 +01:00
|
|
|
<?php
|
2019-05-21 05:14:41 +02:00
|
|
|
namespace Psalm\Test\Config\Plugin\Hook\StringProvider;
|
|
|
|
|
|
|
|
class TSqlSelectString extends \Psalm\Type\Atomic\TLiteralString
|
2019-03-07 20:56:18 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getKey()
|
|
|
|
{
|
|
|
|
return 'sql-select-string';
|
|
|
|
}
|
2019-07-05 22:24:00 +02:00
|
|
|
|
2019-03-07 20:56:18 +01:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2020-02-02 18:25:24 +01:00
|
|
|
public function getId(bool $nested = true)
|
2019-03-07 20:56:18 +01:00
|
|
|
{
|
|
|
|
return 'sql-select-string(' . $this->value . ')';
|
|
|
|
}
|
2019-07-05 22:24:00 +02:00
|
|
|
|
2019-03-07 20:56:18 +01:00
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function canBeFullyExpressedInPhp()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|