21 declare(strict_types=1);
56 $unlist = $variable->
unlist();
57 return "(" .
implode(
",",
array_map(
function($value) use ($unlist, $placeHolder, &$outArgs){
58 return $this->
formatVariable($unlist, $value, $placeHolder, $outArgs);
72 return $value ?
"1" :
"0";
76 return (
string) $value;
83 return (
string) $value;
87 if($placeHolder !== null){
93 $varName =
":var" .
rand(0, 10000000);
94 }
while(isset($outArgs[$varName]));
95 $outArgs[$varName] = $value;
96 return " " . $varName .
" ";
101 return "CURRENT_TIMESTAMP";
103 return "FROM_UNIXTIME($value)";
formatVariable(GenericVariable $variable, $value, ?string $placeHolder, array &$outArgs)