AbstractCharacterColumn::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace donatj\MySqlSchema\Columns\String;
4
5
use donatj\MySqlSchema\Columns\Interfaces\RequiredLengthInterface;
6
use donatj\MySqlSchema\Columns\Traits\RequiredLengthTrait;
7
8
abstract class AbstractCharacterColumn extends AbstractStringColumn implements RequiredLengthInterface {
9
10
	use RequiredLengthTrait;
11
12
	/**
13
	 * @param string $name
14
	 * @param int    $length
15
	 */
16
	public function __construct( $name, $length ) {
17
		parent::__construct($name);
18
		$this->setLength($length);
19
	}
20
}
21