Completed
Push — member-groupset-delete ( a90a9a )
by Loz
11:22
created

BigInt   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A requireField() 0 12 1
1
<?php
2
3
/**
4
 * Represents a signed 8 byte integer field. Do note PHP running as 32-bit might not work with Bigint properly, as it
5
 * would convert the value to a float when queried from the database since the value is a 64-bit one.
6
 *
7
 * @package framework
8
 * @subpackage model
9
 * @see Int
10
 */
11
class BigInt extends Int {
12
13
	public function requireField() {
14
		$parts = array(
15
			'datatype' => 'bigint',
16
			'precision' => 8,
17
			'null' => 'not null',
18
			'default' => $this->defaultVal,
19
			'arrayValue' => $this->arrayValue
20
		);
21
22
		$values = array('type' => 'bigint', 'parts' => $parts);
23
		DB::require_field($this->tableName, $this->name, $values);
24
	}
25
}
26