SmokeTestOptions::getBodyLength()   A
last analyzed

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 0
1
<?php
2
namespace DjThossi\SmokeTestingPhp\Options;
3
4
use DjThossi\SmokeTestingPhp\Collection\UrlCollection;
5
use DjThossi\SmokeTestingPhp\ValueObject\BasicAuth;
6
use DjThossi\SmokeTestingPhp\ValueObject\BodyLength;
7
use DjThossi\SmokeTestingPhp\ValueObject\Concurrency;
8
use DjThossi\SmokeTestingPhp\ValueObject\FollowRedirect;
9
use DjThossi\SmokeTestingPhp\ValueObject\RequestTimeout;
10
11
class SmokeTestOptions
12
{
13
    /**
14
     * @var UrlCollection
15
     */
16
    private $urls;
17
18
    /**
19
     * @var RequestTimeout
20
     */
21
    private $requestTimeout;
22
23
    /**
24
     * @var FollowRedirect
25
     */
26
    private $followRedirect;
27
28
    /**
29
     * @var Concurrency
30
     */
31
    private $concurrency;
32
33
    /**
34
     * @var BodyLength
35
     */
36
    private $bodyLength;
37
38
    /**
39
     * @var BasicAuth|null
40
     */
41
    private $basicAuth;
42
43
    /**
44
     * @param UrlCollection $urls
45
     * @param RequestTimeout $requestTimeout
46
     * @param FollowRedirect $followRedirect
47
     * @param Concurrency $concurrency
48
     * @param BodyLength $bodyLength
49
     * @param BasicAuth|null $basicAuth
50
     */
51
    public function __construct(
52
        UrlCollection $urls,
53
        RequestTimeout $requestTimeout,
54
        FollowRedirect $followRedirect,
55
        Concurrency $concurrency,
56
        BodyLength $bodyLength,
57
        BasicAuth $basicAuth = null
58
    ) {
59
        $this->urls = $urls;
60
        $this->requestTimeout = $requestTimeout;
61
        $this->followRedirect = $followRedirect;
62
        $this->concurrency = $concurrency;
63
        $this->bodyLength = $bodyLength;
64
        $this->basicAuth = $basicAuth;
65
    }
66
67
    /**
68
     * @return UrlCollection
69
     */
70
    public function getUrls()
71
    {
72
        return $this->urls;
73
    }
74
75
    /**
76
     * @return RequestTimeout
77
     */
78
    public function getRequestTimeout()
79
    {
80
        return $this->requestTimeout;
81
    }
82
83
    /**
84
     * @return FollowRedirect
85
     */
86
    public function getFollowRedirect()
87
    {
88
        return $this->followRedirect;
89
    }
90
91
    /**
92
     * @return Concurrency
93
     */
94
    public function getConcurrency()
95
    {
96
        return $this->concurrency;
97
    }
98
99
    /**
100
     * @return BodyLength
101
     */
102
    public function getBodyLength()
103
    {
104
        return $this->bodyLength;
105
    }
106
107
    /**
108
     * @return BasicAuth|null
109
     */
110
    public function getBasicAuth()
111
    {
112
        return $this->basicAuth;
113
    }
114
}
115