PreRoutingArgs   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getService() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Drest package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @author Lee Davis
9
 * @copyright Copyright (c) Lee Davis <@leedavis81>
10
 * @link https://github.com/leedavis81/drest/blob/master/LICENSE
11
 * @license http://opensource.org/licenses/MIT The MIT X License (MIT)
12
 */
13
namespace Drest\Event;
14
15
use Doctrine\Common\EventArgs;
16
use Drest\Service;
17
18
class PreRoutingArgs extends EventArgs
19
{
20
    /**
21
     * @var Service $service
22
     */
23
    private $service;
24
25
    /**
26
     * @param Service $service
27
     */
28 31
    public function __construct(Service $service)
29
    {
30 31
        $this->service = $service;
31 31
    }
32
33
    /**
34
     * Get the created service object
35
     * @return Service
36
     */
37 2
    public function getService()
38
    {
39 2
        return $this->service;
40
    }
41
}
42