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

Insert::into()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * Class Insert
4
 *
5
 * @filesource   Insert.php
6
 * @created      03.06.2017
7
 * @package      chillerlan\Database\Query\Dialects\Postgres
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2017 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\Database\Query\Dialects\Postgres;
14
15
use chillerlan\Database\Query\InsertInterface;
16
use chillerlan\Database\Query\InsertAbstract;
17
18
/**
19
 * @link https://www.postgresql.org/docs/current/static/sql-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
}
30