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
namespace Kir\MySQL\Builder\Traits;
3
4
use Kir\MySQL\Builder\Internal\DDLRunnable;
5
use Kir\MySQL\Database\DatabaseStatement;
6
7
/**
8
 * @template T
9
 */
10
trait CreateDDLRunnable {
11
	/**
12
	 * @param DatabaseStatement $query
13
	 * @param callable(scalar): T $callbackFn
14
	 * @return DDLRunnable<T>
15
	 */
16
	public function createPreparable(DatabaseStatement $query, $callbackFn): DDLRunnable {
17
		// @phpstan-ignore-next-line
18
		return new DDLRunnable($query, $callbackFn);
19
	}
20
}
21