Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Http\Exceptions;
4
 
5
use RuntimeException;
6
use Symfony\Component\HttpFoundation\Response;
7
 
8
class HttpResponseException extends RuntimeException
9
{
10
    /**
11
     * The underlying response instance.
12
     *
13
     * @var \Symfony\Component\HttpFoundation\Response
14
     */
15
    protected $response;
16
 
17
    /**
18
     * Create a new HTTP response exception instance.
19
     *
20
     * @param  \Symfony\Component\HttpFoundation\Response  $response
21
     * @return void
22
     */
23
    public function __construct(Response $response)
24
    {
25
        $this->response = $response;
26
    }
27
 
28
    /**
29
     * Get the underlying response instance.
30
     *
31
     * @return \Symfony\Component\HttpFoundation\Response
32
     */
33
    public function getResponse()
34
    {
35
        return $this->response;
36
    }
37
}