CreateDDLRunnable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
dl 0
loc 9
rs 10
c 2
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createPreparable() 0 3 1
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