Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modified constructor; added behaviors

- Value must be present in constructor
- Added required behaviors: send() and __toString()
  • Loading branch information...
commit 90a6c046cd95069dec77b9e2475701d93a0310cd 1 parent a2e458c
@weierophinney authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 library/Fig/Http/HttpHeader.php
View
6 library/Fig/Http/HttpHeader.php
@@ -4,7 +4,7 @@
interface HttpHeader
{
- public function __construct($type, $value = null, $replace = false);
+ public function __construct($type, $value, $replace = false);
/* mutators */
public function setType($type);
@@ -14,4 +14,8 @@ public function replace($flag = null); // also acts as mutator
/* accessors */
public function getType();
public function getValue();
+
+ /* behaviors */
+ public function send();
+ public function __toString();
}
Please sign in to comment.
Something went wrong with that request. Please try again.