The doc comment non-empty-array<int, int|string|array> at position 0 could not be parsed: Unknown type name 'non-empty-array' at position 0 in non-empty-array<int, int|string|array>.
The doc comment non-empty-array<int, int|string|array> at position 0 could not be parsed: Unknown type name 'non-empty-array' at position 0 in non-empty-array<int, int|string|array>.
Loading history...
26
*/
27
73
private function __construct($body)
28
{
29
73
$this->body = $body;
30
}
31
32
65
public static function fromSql(string $sql, array $params = []) : self
33
{
34
65
return new self($params ? [
35
65
Keys::SQL_TEXT => $sql,
36
65
Keys::SQL_BIND => $params,
37
65
] : [
38
65
Keys::SQL_TEXT => $sql,
39
65
]);
40
}
41
42
12
public static function fromStatementId(int $statementId, array $params = []) : self