File tree Expand file tree Collapse file tree 5 files changed +849
-1
lines changed Expand file tree Collapse file tree 5 files changed +849
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Build Status] ( https://travis-ci.org/markenwerk/php-basic-http-client.svg?branch=master )] ( https://travis-ci.org/markenwerk/php-basic-http-client )
4
4
[ ![ Test Coverage] ( https://codeclimate.com/github/markenwerk/php-basic-http-client/badges/coverage.svg )] ( https://codeclimate.com/github/markenwerk/php-basic-http-client/coverage )
5
- [ ![ Dependency Status] ( https://www.versioneye.com/user/projects/571f7843fcd19a0039f18149 /badge.svg )] ( https://www.versioneye.com/user/projects/571f7843fcd19a0039f18149 )
5
+ [ ![ Dependency Status] ( https://www.versioneye.com/user/projects/571f8827fcd19a00415b2836 /badge.svg )] ( https://www.versioneye.com/user/projects/571f8827fcd19a00415b2836 )
6
6
[ ![ Code Climate] ( https://codeclimate.com/github/markenwerk/php-basic-http-client/badges/gpa.svg )] ( https://codeclimate.com/github/markenwerk/php-basic-http-client )
7
7
[ ![ Latest Stable Version] ( https://poser.pugx.org/markenwerk/basic-http-client/v/stable )] ( https://packagist.org/packages/markenwerk/basic-http-client )
8
8
[ ![ Total Downloads] ( https://poser.pugx.org/markenwerk/basic-http-client/downloads )] ( https://packagist.org/packages/markenwerk/basic-http-client )
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Propeller \Lib \HttpClient \Base ;
4
+
5
+ /**
6
+ * HTTP request cookie class
7
+ *
8
+ * Exception code range: `25000`
9
+ *
10
+ * @package Propeller
11
+ * @author Martin Brecht-Precht (mb@markenwerk.net)
12
+ * @date 2014-06-12 16:16:41 +0000
13
+ */
14
+ class HttpRequestCookie
15
+ {
16
+
17
+ /**
18
+ * The request header name
19
+ *
20
+ * @var string
21
+ */
22
+ private $ name ;
23
+
24
+ /**
25
+ * The request header value
26
+ *
27
+ * @var string
28
+ */
29
+ private $ value ;
30
+
31
+ /**
32
+ * The constructor
33
+ *
34
+ * @param string $name
35
+ * @param string $value
36
+ */
37
+ public function __construct ($ name , $ value )
38
+ {
39
+ $ this ->name = $ name ;
40
+ $ this ->value = $ value ;
41
+ }
42
+
43
+ /**
44
+ * Setter for the request header name
45
+ *
46
+ * @param string $name
47
+ * @return $this
48
+ */
49
+ public function setName ($ name )
50
+ {
51
+ $ this ->name = $ name ;
52
+ return $ this ;
53
+ }
54
+
55
+ /**
56
+ * Getter for the request header name
57
+ *
58
+ * @return string
59
+ */
60
+ public function getName ()
61
+ {
62
+ return $ this ->name ;
63
+ }
64
+
65
+ /**
66
+ * Setter for the request header value
67
+ *
68
+ * @param string $value
69
+ * @return $this
70
+ */
71
+ public function setValue ($ value )
72
+ {
73
+ $ this ->value = $ value ;
74
+ return $ this ;
75
+ }
76
+
77
+ /**
78
+ * Getter for the request header value
79
+ *
80
+ * @return string
81
+ */
82
+ public function getValue ()
83
+ {
84
+ return $ this ->value ;
85
+ }
86
+
87
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Propeller \Lib \HttpClient \Base ;
4
+
5
+ /**
6
+ * HTTP request header class
7
+ *
8
+ * Exception code range: `25100`
9
+ *
10
+ * @package Propeller
11
+ * @author Martin Brecht-Precht (mb@markenwerk.net)
12
+ * @date 2014-06-12 16:16:41 +0000
13
+ */
14
+ class HttpRequestHeader
15
+ {
16
+
17
+ /**
18
+ * The request cookie name
19
+ * @var string
20
+ */
21
+ private $ name ;
22
+
23
+ /**
24
+ * The request cookie value
25
+ * @var string
26
+ */
27
+ private $ value ;
28
+
29
+ /**
30
+ * Setter for the request cookie name
31
+ * @param string $name
32
+ * @return $this
33
+ */
34
+ public function setName ($ name )
35
+ {
36
+ $ this ->name = $ name ;
37
+ return $ this ;
38
+ }
39
+
40
+ /**
41
+ * Getter for the request cookie name
42
+ * @return string
43
+ */
44
+ public function getName ()
45
+ {
46
+ return $ this ->name ;
47
+ }
48
+
49
+ /**
50
+ * Setter for the request cookie value
51
+ * @param string $value
52
+ * @return $this
53
+ */
54
+ public function setValue ($ value )
55
+ {
56
+ $ this ->value = $ value ;
57
+ return $ this ;
58
+ }
59
+
60
+ /**
61
+ * Getter for the request cookie value
62
+ * @return string
63
+ */
64
+ public function getValue ()
65
+ {
66
+ return $ this ->value ;
67
+ }
68
+
69
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Propeller \Lib \HttpClient \Base ;
4
+
5
+ /**
6
+ * HTTP request header class
7
+ *
8
+ * Exception code range: `25200`
9
+ *
10
+ * @package Propeller
11
+ * @author Martin Brecht-Precht (mb@markenwerk.net)
12
+ * @date 2014-06-25
13
+ */
14
+ class HttpResponseHeader
15
+ {
16
+
17
+ /**
18
+ * The request cookie name
19
+ * @var string
20
+ */
21
+ private $ name ;
22
+
23
+ /**
24
+ * The request cookie value
25
+ * @var string
26
+ */
27
+ private $ value ;
28
+
29
+ /**
30
+ * Setter for the request cookie name
31
+ * @param string $name
32
+ * @return $this
33
+ */
34
+ public function setName ($ name )
35
+ {
36
+ $ this ->name = $ name ;
37
+ return $ this ;
38
+ }
39
+
40
+ /**
41
+ * Getter for the request cookie name
42
+ * @return string
43
+ */
44
+ public function getName ()
45
+ {
46
+ return $ this ->name ;
47
+ }
48
+
49
+ /**
50
+ * Setter for the request cookie value
51
+ * @param string $value
52
+ * @return $this
53
+ */
54
+ public function setValue ($ value )
55
+ {
56
+ $ this ->value = $ value ;
57
+ return $ this ;
58
+ }
59
+
60
+ /**
61
+ * Getter for the request cookie value
62
+ * @return string
63
+ */
64
+ public function getValue ()
65
+ {
66
+ return $ this ->value ;
67
+ }
68
+
69
+ }
You can’t perform that action at this time.
0 commit comments