VirtualTable   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 4
c 1
b 0
f 0
dl 0
loc 29
rs 10

4 Methods

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