Skip to content

Commit

Permalink
setKey and setValue need not return the Header object
Browse files Browse the repository at this point in the history
  • Loading branch information
abhshkdz committed Jun 24, 2014
1 parent a51a5ee commit f926bf1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libs/header/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function fromString($headerString)
return new static($key, $value);
}


/**
* Splits the header string in `key` and `value` parts.
*
Expand Down Expand Up @@ -75,7 +75,6 @@ protected function setKey($key)
throw new Exception\InvalidArgumentException('Header name must be a valid RFC 2616 (section 4.2) field-name.');

$this->key = $key;
return $this;
}

public function getKey()
Expand All @@ -94,7 +93,6 @@ protected function setValue($value)
$value = '';

$this->value = $value;
return $this;
}

public function getValue()
Expand All @@ -112,7 +110,7 @@ public function toString()

/**
* Checks if headers have already been sent
*
*
* @throws Exception\HeaderException if headers already sent.
*/
public static function isSent()
Expand Down

0 comments on commit f926bf1

Please sign in to comment.