Completed
Branch EDTR/master (2c3e96)
by
unknown
19:06 queued 09:20
created

PrimaryRoute   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setRouteRequestType() 0 4 1
A getRouteRequestType() 0 4 1
1
<?php
2
3
namespace EventEspresso\core\services\routing;
4
5
use DomainException;
6
use EE_Dependency_Map;
7
use EventEspresso\core\domain\entities\routing\specifications\RouteMatchSpecificationInterface;
8
use EventEspresso\core\services\assets\AssetManagerInterface;
9
use EventEspresso\core\services\json\JsonDataNode;
10
use EventEspresso\core\services\loaders\LoaderInterface;
11
use EventEspresso\core\services\request\RequestInterface;
12
13
/**
14
 * Class PrimaryRoute
15
 * - A route that is the base that all other "sub-routes" branch from
16
 *
17
 * @package EventEspresso\core\services\routing
18
 * @author  Brent Christensen
19
 * @since   $VID:$
20
 */
21
abstract class PrimaryRoute extends Route
22
{
23
24
    const ROUTE_REQUEST_TYPE_ACTIVATION = 'ACTIVATION';
25
26
    const ROUTE_REQUEST_TYPE_REGULAR = 'REGULAR';
27
28
29
    /**
30
     * @var string $route_request_type
31
     */
32
    protected $route_request_type;
33
34
35
    /**
36
     * @param string $route_request_type
37
     */
38
    public function setRouteRequestType($route_request_type)
39
    {
40
        $this->route_request_type = $route_request_type;
41
    }
42
43
44
    /**
45
     * @return string
46
     */
47
    public function getRouteRequestType()
48
    {
49
        return $this->route_request_type;
50
    }
51
}
52