Passed
Push — master ( ced6c1...c6a615 )
by Alex
03:09
created

HttpRequestParamsMock::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
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