Ejemplo n.º 1
0
        $args = array_slice(func_get_args(), 1);
        return call_user_func_array(array($class, $method), $args);
    }
    protected static function _scopedLsb($class, $method)
    {
        $args = array_slice(func_get_args(), 2);
        return call_user_func_array(array($class, $method), $args);
    }
    public function __toJSON()
    {
        if (defined('JSON_PRETTY_PRINT')) {
            return json_encode($this->__toArray(true), JSON_PRETTY_PRINT);
        } else {
            return json_encode($this->__toArray(true));
        }
    }
    public function __toString()
    {
        return $this->__toJSON();
    }
    public function __toArray($recursive = false)
    {
        if ($recursive) {
            return M2_Stripe_Util::convertStripeObjectToArray($this->_values);
        } else {
            return $this->_values;
        }
    }
}
M2_Stripe_Object::init();