Completed
Push — master ( 354401...52d456 )
by Ron
01:49
created

VirtualTable   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 36
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTableName() 0 3 1
A getParams() 0 3 1
A __toString() 0 3 1
1
<?php
2
namespace Kir\MySQL\Tools;
3
4
class VirtualTable {
5
	/** @var string */
6
	private $tableName;
7
	/** @var array */
8
	private $params = [];
9
	
10
	/**
11
	 * @param string $tableName
12
	 * @param array $params
13
	 */
14
	public function __construct($tableName, array $params = []) {
15
		$this->tableName = $tableName;
16
		$this->params = $params;
17
	}
18
	
19
	/**
20
	 * @return string
21
	 */
22
	public function getTableName() {
23
		return $this->tableName;
24
	}
25
	
26
	/**
27
	 * @return array
28
	 */
29
	public function getParams() {
30
		return $this->params;
31
	}
32
	
33
	/**
34
	 * @return string
35
	 */
36
	public function __toString() {
37
		return $this->getTableName();
38
	}
39
}
40