Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Various changes to Zend\Http
Browse files Browse the repository at this point in the history
  * Addition of concrete header objects
  * Altered Headers, RequestHeaders and ResponseHeaders to handle concrete header objects of specific types
  • Loading branch information
Ralph Schindler committed Aug 8, 2011
1 parent 9048c2d commit 126ccb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 9 additions & 6 deletions src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@

class Message implements MessageDescription
{
/**
* @var array
*/
protected $metadata = array();
protected $content;

/**
* @var string
*/
protected $content = '';

/**
* Set message metadata
Expand Down Expand Up @@ -83,7 +90,7 @@ public function getContent()
return $this->content;
}

public function __toString()
public function toString()
{
$request = '';
foreach ($this->getMetadata() as $key => $value) {
Expand All @@ -97,8 +104,4 @@ public function __toString()
return $request;
}

public function fromString($string)
{
throw new Exception\DomainException('Unimplemented: ' . __METHOD__);
}
}
4 changes: 1 addition & 3 deletions src/MessageDescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ public function getMetadata($key = null);

public function setContent($content);
public function getContent();

public function __toString();
public function fromString($string);

}

0 comments on commit 126ccb2

Please sign in to comment.