AbstractCheck   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequest() 0 4 1
A setRequest() 0 5 1
1
<?php
2
/**
3
 * Mage Scan
4
 *
5
 * PHP version 5
6
 *
7
 * @category  MageScan
8
 * @package   MageScan
9
 * @author    Steve Robbins <[email protected]>
10
 * @copyright 2015 Steve Robbins
11
 * @license   http://creativecommons.org/licenses/by/4.0/ CC BY 4.0
12
 * @link      https://github.com/steverobbins/magescan
13
 */
14
15
namespace MageScan\Check;
16
17
use MageScan\Request;
18
19
/**
20
 * Defines some core check functionality
21
 *
22
 * @category  MageScan
23
 * @package   MageScan
24
 * @author    Steve Robbins <[email protected]>
25
 * @copyright 2015 Steve Robbins
26
 * @license   http://creativecommons.org/licenses/by/4.0/ CC BY 4.0
27
 * @link      https://github.com/steverobbins/magescan
28
 */
29
abstract class AbstractCheck
30
{
31
    /**
32
     * Request object
33
     *
34
     * @var \MageScan\Request
35
     */
36
    protected $request;
37
38
    /**
39
     * Get an instance of the Request object
40
     *
41
     * @return \MageScan\Request
42
     */
43
    public function getRequest()
44
    {
45
        return $this->request;
46
    }
47
48
    /**
49
     * Set the cached request object
50
     *
51
     * @param \MageScan\Request $request
52
     *
53
     * @return AbstractCheck
54
     */
55
    public function setRequest(\MageScan\Request $request)
56
    {
57
        $this->request = $request;
58
        return $this;
59
    }
60
}
61