HttpRequestParamsMock   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getParam() 0 3 1
1
<?php
2
namespace Mezon\Service\Tests\Mocks;
3
4
use Mezon\Transport\HttpRequestParams;
5
use Mezon\Router\Router;
6
7
class HttpRequestParamsMock extends HttpRequestParams
8
{
9
10
    // TODO move to the mezon/transport package
11
    /**
12
     * Constructor
13
     */
14
    public function __construct()
15
    {
16
        $router = new Router();
17
18
        parent::__construct($router);
19
    }
20
21
    /**
22
     *
23
     * {@inheritdoc}
24
     * @see HttpRequestParams::getParam()
25
     */
26
    public function getParam($param, $default = false)
27
    {
28
        return 'token';
29
    }
30
}
31