public static function create($response)
    {
        if (is_array($response)) {
            return new Response($response[0], $response[1]);
        } elseif (is_int($response)) {
            return new Response($response);
        } elseif (is_string($response)) {
            return new Response(200, $response);
        } elseif ($response instanceof Response) {
            return $response;
        }
        return new Response;
    }
public static function create($response)
    {
        if (is_array($response)) {
            return new Response($response[0], $response[1]);
        } elseif (is_int($response)) {
            return new Response($response);
        } elseif (is_string($response)) {
            return new Response(200, $response);
        } elseif ($response instanceof Response) {
            return $response;
        }
        return new Response;
    }
public static function create ( $ response ) { if ( is_array ( $ response ) ) { return new Response ( $ response [ 0 ] , $ response [ 1 ] ) ; } elseif ( is_int ( $ response ) ) { return new Response ( $ response ) ; } elseif ( is_string ( $ response ) ) { return new Response ( 200 , $ response ) ; } elseif ( $ response instanceof Response ) { return $ response ; } return new Response ; }
Factory method to create a Response from a variety of inputs

@param mixed $response
Factory method to create a Response from a variety of inputs