Completed
Push — master ( 17da57...0d4fd4 )
by Denis
02:07
created

TransportContainer   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 40
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTransport() 0 4 1
A getRequest() 0 4 1
1
<?php
2
3
namespace PhpJsonRpc\Client\Transport;
4
5
use PhpJsonRpc\Client\AbstractTransport;
6
use PhpJsonRpc\Common\Interceptor\AbstractContainer;
7
8
class TransportContainer extends AbstractContainer
9
{
10
    /**
11
     * @var AbstractTransport
12
     */
13
    private $transport;
14
15
    /**
16
     * @var string
17
     */
18
    private $request;
19
20
    /**
21
     * TransportContainer constructor.
22
     *
23
     * @param AbstractTransport $transport
24
     * @param string            $request
25
     */
26
    public function __construct(AbstractTransport $transport, $request)
27
    {
28
        $this->transport = $transport;
29
        $this->request   = $request;
30
    }
31
32
    /**
33
     * @return AbstractTransport
34
     */
35
    public function getTransport(): AbstractTransport
36
    {
37
        return $this->transport;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getRequest(): string
44
    {
45
        return $this->request;
46
    }
47
}
48