Completed
Push — master ( f4a4ac...da994a )
by Tobias
02:15
created
src/MessageTrait.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@  discard block
 block discarded – undo
31 31
         return $this->protocol;
32 32
     }
33 33
 
34
+    /**
35
+     * @param string $version
36
+     */
34 37
     public function withProtocolVersion($version): self
35 38
     {
36 39
         if ($this->protocol === $version) {
@@ -48,6 +51,9 @@  discard block
 block discarded – undo
48 51
         return $this->headers;
49 52
     }
50 53
 
54
+    /**
55
+     * @param string $header
56
+     */
51 57
     public function hasHeader($header): bool
52 58
     {
53 59
         return isset($this->headerNames[strtolower($header)]);
@@ -65,11 +71,17 @@  discard block
 block discarded – undo
65 71
         return $this->headers[$header];
66 72
     }
67 73
 
74
+    /**
75
+     * @param string $header
76
+     */
68 77
     public function getHeaderLine($header): string
69 78
     {
70 79
         return implode(', ', $this->getHeader($header));
71 80
     }
72 81
 
82
+    /**
83
+     * @param string $header
84
+     */
73 85
     public function withHeader($header, $value): self
74 86
     {
75 87
         $value = $this->validateAndTrimHeader($header, $value);
@@ -85,6 +97,9 @@  discard block
 block discarded – undo
85 97
         return $new;
86 98
     }
87 99
 
100
+    /**
101
+     * @param string $header
102
+     */
88 103
     public function withAddedHeader($header, $value): self
89 104
     {
90 105
         if (!is_string($header) || '' === $header) {
@@ -97,6 +112,9 @@  discard block
 block discarded – undo
97 112
         return $new;
98 113
     }
99 114
 
115
+    /**
116
+     * @param string $header
117
+     */
100 118
     public function withoutHeader($header): self
101 119
     {
102 120
         $normalized = strtolower($header);
Please login to merge, or discard this patch.