Completed
Push — master ( 516ea9...17b012 )
by Arthur
01:34
created

ClientConfig::setContext()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace WSSC\Components;
4
5
6
use WSSC\Contracts\WscCommonsContract;
7
8
class ClientConfig
9
{
10
11
    private $timeout = WscCommonsContract::DEFAULT_TIMEOUT;
12
    private $headers = [];
13
    private $fragmentSize = WscCommonsContract::DEFAULT_FRAGMENT_SIZE;
14
    private $context;
15
16
    /**
17
     * @return int
18
     */
19
    public function getTimeout(): int
20
    {
21
        return $this->timeout;
22
    }
23
24
    /**
25
     * @param int $timeout
26
     */
27
    public function setTimeout(int $timeout)
28
    {
29
        $this->timeout = $timeout;
30
    }
31
32
    /**
33
     * @return array
34
     */
35
    public function getHeaders(): array
36
    {
37
        return $this->headers;
38
    }
39
40
    /**
41
     * @param array $headers
42
     */
43
    public function setHeaders(array $headers)
44
    {
45
        $this->headers = $headers;
46
    }
47
48
    /**
49
     * @return int
50
     */
51
    public function getFragmentSize(): int
52
    {
53
        return $this->fragmentSize;
54
    }
55
56
    /**
57
     * @param int $fragmentSize
58
     */
59
    public function setFragmentSize(int $fragmentSize)
60
    {
61
        $this->fragmentSize = $fragmentSize;
62
    }
63
64
    /**
65
     * @return mixed
66
     */
67
    public function getContext()
68
    {
69
        return $this->context;
70
    }
71
72
    /**
73
     * @param mixed $context
74
     */
75
    public function setContext($context)
76
    {
77
        $this->context = $context;
78
    }
79
}