Permalink
Browse files

Try to conform to interfaces :)

  • Loading branch information...
1 parent 1443ec5 commit 352a228e6db8dcab39426d75fd1f8b8c69a380cc @dcousineau dcousineau committed Mar 15, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Splash/Chargify/Resource/Errors.php
@@ -14,11 +14,13 @@ class Errors extends ResourceAbstract {
public $errors = array();
public function getName() { return 'errors'; }
- public static function hydrate($data) {
+ public static function hydrate($data, ResponseHydrator $hydator) {
$obj = new self();
foreach ($data as $error) {
$obj->errors[] = $error;
}
+
+ return $obj;
}
}

0 comments on commit 352a228

Please sign in to comment.