public static function init($response, $data) { self::$response = $response; self::$stack = array(); if (is_array($data)) { array_push(self::$stack, $data); } else { array_push(self::$stack, array('__raw' => $data)); } }
public static function init($response, $data = array()) { self::$response = $response; self::$stack = array(); array_push(self::$stack, $data); }