TableManager::getDual()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
}