Completed
Push — master ( ffbb02...68e5b2 )
by smiley
02:42
created

CreateAbstract::view()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Class CreateAbstract
4
 *
5
 * @filesource   CreateAbstract.php
6
 * @created      03.06.2017
7
 * @package      chillerlan\Database\Query\Dialects
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2017 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\Database\Query;
14
15
abstract class CreateAbstract extends StatementAbstract implements CreateInterface{
16
17
	/**
18
	 * @param string|null $dbname
19
	 *
20
	 * @return \chillerlan\Database\Query\CreateDatabaseInterface
21
	 */
22 View Code Duplication
	public function database(string $dbname = null):CreateDatabaseInterface{
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
23
		$class = $this->dialect.'\\CreateDatabase';
24
		/** @var \chillerlan\Database\Query\CreateDatabaseInterface $createTable */
25
		$createTable = new $class($this->DBDriver, $this->dialect);
26
27
		return $createTable->name($dbname);
28
	}
29
30
	/**
31
	 * @param string|null $tablename
32
	 *
33
	 * @return \chillerlan\Database\Query\CreateTableInterface
34
	 */
35 View Code Duplication
	public function table(string $tablename = null):CreateTableInterface{
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
36
		$class = $this->dialect.'\\CreateTable';
37
		/** @var \chillerlan\Database\Query\CreateTableInterface $createTable */
38
		$createTable = new $class($this->DBDriver, $this->dialect);
39
40
		return $createTable->name($tablename);
41
	}
42
43
	public function index():CreateInterface{
44
		// TODO: Implement index() method.
45
	}
46
47
	public function view():CreateInterface{
48
		// TODO: Implement view() method.
49
	}
50
51
	public function trigger():CreateInterface{
52
		// TODO: Implement trigger() method.
53
	}
54
}
55