RouterAbstract   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 45
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
namespace Redaxscript\Router;
3
4
use Redaxscript\Config;
5
use Redaxscript\Language;
6
use Redaxscript\Registry;
7
use Redaxscript\Request;
8
9
/**
10
 * abstract class to create a router class
11
 *
12
 * @since 3.3.0
13
 *
14
 * @package Redaxscript
15
 * @category Router
16
 * @author Henry Ruhs
17
 */
18
19
class RouterAbstract extends Parameter
20
{
21
	/**
22
	 * instance of the registry class
23
	 *
24
	 * @var Registry
25
	 */
26
27
	protected $_registry;
28
29
	/**
30
	 * instance of the language class
31
	 *
32
	 * @var Language
33
	 */
34
35
	protected $_language;
36
37
	/**
38
	 * instance of the config class
39
	 *
40
	 * @var Config
41
	 */
42
43
	protected $_config;
44
45
	/**
46
	 * constructor of the class
47
	 *
48
	 * @since 3.3.0
49
	 *
50
	 * @param Registry $registry instance of the registry class
51
	 * @param Request $request instance of the request class
52
	 * @param Language $language instance of the language class
53
	 * @param Config $config instance of the config class
54
	 */
55
56
	public function __construct(Registry $registry, Request $request, Language $language, Config $config)
57
	{
58
		parent::__construct($request);
59
		$this->_registry = $registry;
60
		$this->_language = $language;
61
		$this->_config = $config;
62
	}
63
}