Completed
Push — master ( d508c6...ead087 )
by smiley
02:37
created

Insert   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
cbo 1
dl 0
loc 8
c 0
b 0
f 0
lcom 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A into() 0 5 1
1
<?php
2
/**
3
 * Class Insert
4
 *
5
 * @filesource   Insert.php
6
 * @created      03.06.2017
7
 * @package      chillerlan\Database\Query\Dialects\MySQL
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2017 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\Database\Query\Dialects\MySQL;
14
15
use chillerlan\Database\Query\InsertInterface;
16
use chillerlan\Database\Query\InsertAbstract;
17
18
/**
19
 * @link https://dev.mysql.com/doc/refman/5.7/en/insert.html
20
 */
21
class Insert extends InsertAbstract{
22
23
	public function into(string $table, string $on_conflict = null):InsertInterface{
24
		$this->table = trim($table);
25
26
		return $this;
27
	}
28
}
29