Client   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A sendData() 0 3 1
A __get() 0 3 1
1
<?php
2
3
namespace veejay\jsonrpc\tests;
4
5
use veejay\jsonrpc\batch\Request;
6
use veejay\jsonrpc\batch\Response;
7
8
/**
9
 * Class Client
10
 * @package veejay\jsonrpc\tests
11
 *
12
 * @property-read Request[] $requests
13
 * @property-read Response[] $responses
14
 */
15
final class Client extends \veejay\jsonrpc\Client
16
{
17
    /**
18
     * @var array|object|null
19
     */
20
    public $_data;
21
22
    /**
23
     * @param string $name
24
     * @return mixed
25
     */
26
    public function __get($name)
27
    {
28
        return $this->$name;
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    protected function sendData()
35
    {
36
        return $this->_data;
37
    }
38
}
39