TableManager   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getAccounts() 0 4 1
A getFFAPvP() 0 4 1
A getDual() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: UramnOIL
5
 * Date: 2018/10/06
6
 * Time: 22:49
7
 */
8
9
namespace VectorNetworkProject\DataProvider\Tables;
10
11
12
use poggit\libasynql\DataConnector;
13
use VectorNetworkProject\DataProvider\Tables\Accounts\Accounts;
14
use VectorNetworkProject\DataProvider\Tables\Dual\Dual;
15
use VectorNetworkProject\DataProvider\Tables\FFAPvP\FFAPvP;
16
17
class TableManager
18
{
19
	/** @var DataConnector */
20
	protected $connector;
21
22
	/** @var Accounts */
23
	protected $accounts;
24
	/** @var FFAPvP */
25
	protected $ffapvp;
26
	/** @var Dual */
27
	protected $dual;
28
29
	public function __construct(DataConnector $connector)
30
	{
31
		$this->connector = $connector;
32
		$this->accounts = new Accounts($connector);
33
		$this->ffapvp = new FFAPvP($connector);
34
		$this->dual = new Dual($connector);
35
	}
36
37
	/**
38
	 * @return Accounts
39
	 */
40
	public function getAccounts(): Accounts
41
	{
42
		return $this->accounts;
43
	}
44
45
	/**
46
	 * @return FFAPvP
47
	 */
48
	public function getFFAPvP(): FFAPvP
49
	{
50
		return $this->ffapvp;
51
	}
52
53
	/**
54
	 * @return Dual
55
	 */
56
	public function getDual(): Dual
57
	{
58
		return $this->dual;
59
	}
60
}