Skip to content

Commit

Permalink
Make hydrate public to allow hydrating from outside response objects
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Nov 17, 2014
1 parent 99c1da6 commit 414ce8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Abstracts/AbstractApiResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ public function setApiCallData(ApiCallData $callData)
{
$this->_apiCallData = $callData;
$data = $callData->getRawResult();
$this->_hydrate($data);
$this->hydrate($data);
}

/**
* Hydrate the public properties
*
* @param $data
*/
protected function _hydrate($data)
public function hydrate($data)
{
if($data && $this->_hydratePublic)
{
Expand Down

0 comments on commit 414ce8e

Please sign in to comment.