Completed
Branch EDTR/master (da238f)
by
unknown
09:58 queued 01:23
created

RouteMatchSpecification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace EventEspresso\core\domain\entities\routing\specifications;
4
5
use EventEspresso\core\services\request\RequestInterface;
6
7
/**
8
 * Class RouteMatchSpecification
9
 * Variation of the Specification design pattern for matching the current request to specific routes.
10
 *
11
 * !!! IMPORTANT !!!
12
 *
13
 * RouteMatchSpecification classes that only have dependencies for the RequestInterface
14
 * or other RouteMatchSpecification classes can have their dependencies automatically resolved
15
 * by the RouteMatchSpecificationManager and do not need to be registered by calling
16
 * EE_Dependency_Map::registerDependencies() or manually adding an entry in the dependency map.
17
 * RouteMatchSpecification classes with more complex dependencies will still have to
18
 * register their dependencies normally
19
 *
20
 * @package EventEspresso\core\domain\entities\routing
21
 * @author  Brent Christensen
22
 * @since   4.9.71.p
23
 */
24
abstract class RouteMatchSpecification implements RouteMatchSpecificationInterface
25
{
26
27
    /**
28
     * @var RequestInterface $request
29
     */
30
    protected $request;
31
32
    /**
33
     * RouteMatch constructor.
34
     * @param RequestInterface $request
35
     */
36
    public function __construct(RequestInterface $request)
37
    {
38
        $this->request = $request;
39
    }
40
}
41