Completed
Push — master ( 3097a5...bdf786 )
by Ron
03:10
created

RunnableDelete::prepare()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 2
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
namespace Kir\MySQL\Builder;
3
4
use Kir\MySQL\Builder\Internal\DDLPreparable;
5
use Kir\MySQL\Builder\Internal\DDLRunnable;
6
use Kir\MySQL\Builder\Traits\CreateDDLRunnable;
7
use Kir\MySQL\Databases\MySQL;
8
9
class RunnableDelete extends Delete implements DDLPreparable {
10
	use CreateDDLRunnable;
11
12
	/**
13
	 * @param array $params
14
	 * @return int
15
	 */
16
	public function run(array $params = []) {
17
		return $this->prepare()->run($params);
18
	}
19
20
	/**
21
	 * @return DDLRunnable
22
	 */
23
	public function prepare() {
24
		return $this->createPreparable($this->db()->prepare($this));
25
	}
26
}
27