Skip to content

Commit

Permalink
No need to implement serializable in ResultSetDecorator anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jul 7, 2015
1 parent 28fc8cc commit 1f6051d
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/Datasource/ResultSetDecorator.php
Expand Up @@ -43,29 +43,4 @@ public function count()

return count($this->toArray());
}

/**
* Serialize a resultset.
*
* Part of Serializable interface.
*
* @return string Serialized object
*/
public function serialize()
{
return serialize($this->toArray());
}

/**
* Unserialize a resultset.
*
* Part of Serializable interface.
*
* @param string $serialized Serialized object
* @return void
*/
public function unserialize($serialized)
{
parent::__construct(unserialize($serialized));
}
}

0 comments on commit 1f6051d

Please sign in to comment.