Skip to content

Commit

Permalink
Added method Response::getContent().
Browse files Browse the repository at this point in the history
  • Loading branch information
romeOz committed Nov 13, 2015
1 parent 9b89a0b commit 94c979b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,19 @@ public function setStatusCode($value, $text = null)
}
}

/**
* Returns content.
* @return string|array
*/
public function getContent()
{
if (isset($this->content)) {
return $this->content;
}

return $this->data;
}

/**
* Returns the header collection.
*
Expand Down

0 comments on commit 94c979b

Please sign in to comment.