Passed
Push — master ( a03e81...128513 )
by Lawrence
01:39
created

Test::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 +------------------------------------------------------------------------+
4
 | Plinker-RPC PHP                                                        |
5
 +------------------------------------------------------------------------+
6
 | Copyright (c)2017-2018 (https://github.com/plinker-rpc/core)           |
7
 +------------------------------------------------------------------------+
8
 | This source file is subject to MIT License                             |
9
 | that is bundled with this package in the file LICENSE.                 |
10
 |                                                                        |
11
 | If you did not receive a copy of the license and are unable to         |
12
 | obtain it through the world-wide-web, please send an email             |
13
 | to [email protected] so we can send you a copy immediately.        |
14
 +------------------------------------------------------------------------+
15
 | Authors: Lawrence Cherone <[email protected]>                     |
16
 +------------------------------------------------------------------------+
17
 */
18
19
namespace Plinker\Core\Endpoint;
20
21
/**
22
 * Plinker\Core\Endpoint\Test
23
 *
24
 * @codeCoverageIgnore
25
 */
26
final class Test
27
{
28
    /**
29
     * @var
30
     */
31
    private $config;
32
    
33
    /**
34
     * Class construct
35
     *
36
     * @param  array $config - Config array which holds object configuration
37
     * @return void
38
     */
39
    public function __construct(array $config = [])
40
    {
41
        $this->config = $config;
42
    }
43
44
    /**
45
     *
46
     */
47
    public function config()
48
    {
49
        return $this->config;
50
    }
51
52
    /**
53
     *
54
     */
55
    public function this()
56
    {
57
        return $this;
58
    }
59
}
60