CreateDDLRunnable::createPreparable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Kir\MySQL\Builder\Traits;
4
5
use Kir\MySQL\Builder\Internal\DDLRunnable;
6
use Kir\MySQL\Database\DatabaseStatement;
7
8
/**
9
 * @template T
10
 */
11
trait CreateDDLRunnable {
12
	/**
13
	 * @param DatabaseStatement $query
14
	 * @param callable(scalar): T $callbackFn
15
	 * @return DDLRunnable<T>
16
	 */
17
	public function createPreparable(DatabaseStatement $query, $callbackFn): DDLRunnable {
18
		// @phpstan-ignore-next-line
19
		return new DDLRunnable($query, $callbackFn);
20
	}
21
}
22