Completed
Push — master ( 47c098...6c95d6 )
by smiley
02:23
created

CreateTable::fieldspec()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 10
nc 1
nop 9

How to fix   Many Parameters   

Many Parameters

Methods with many parameters are not only hard to understand, but their parameters also often become inconsistent when you need more, or different data.

There are several approaches to avoid long parameter lists:

1
<?php
2
/**
3
 *
4
 * @filesource   CreateTable.php
5
 * @created      03.06.2017
6
 * @package      chillerlan\Database\Query\Dialects\Firebird
7
 * @author       Smiley <[email protected]>
8
 * @copyright    2017 Smiley
9
 * @license      MIT
10
 */
11
12
namespace chillerlan\Database\Query\Dialects\Firebird;
13
14
use chillerlan\Database\Query\CreateTableAbstract;
15
16
/**
17
 * Class CreateTable
18
 */
19
class CreateTable extends CreateTableAbstract{
20
21
	protected function fieldspec(
22
		string $name,
23
		string $type,
24
		$length = null,
25
		string $attribute = null,
26
		string $collation = null,
27
		bool $isNull = false,
28
		string $defaultType = null,
29
		$defaultValue = null,
30
		string $extra = null
31
	){
32
		// TODO: Implement fieldspec() method.
33
	}
34
}
35