Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 991 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 991 Revision 1464
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile -...
2
 
-
 
3
declare(strict_types=1);
-
 
4
 
2
 
Zeile 5... Zeile 3...
5
namespace Psr\Http\Message;
3
namespace Psr\Http\Message;
6
 
4
 
7
/**
5
/**
Zeile 27... Zeile 25...
27
     * The status code is a 3-digit integer result code of the server's attempt
25
     * The status code is a 3-digit integer result code of the server's attempt
28
     * to understand and satisfy the request.
26
     * to understand and satisfy the request.
29
     *
27
     *
30
     * @return int Status code.
28
     * @return int Status code.
31
     */
29
     */
32
    public function getStatusCode();
30
    public function getStatusCode(): int;
Zeile 33... Zeile 31...
33
 
31
 
34
    /**
32
    /**
35
     * Return an instance with the specified status code and, optionally, reason phrase.
33
     * Return an instance with the specified status code and, optionally, reason phrase.
36
     *
34
     *
Zeile 49... Zeile 47...
49
     *     provided status code; if none is provided, implementations MAY
47
     *     provided status code; if none is provided, implementations MAY
50
     *     use the defaults as suggested in the HTTP specification.
48
     *     use the defaults as suggested in the HTTP specification.
51
     * @return static
49
     * @return static
52
     * @throws \InvalidArgumentException For invalid status code arguments.
50
     * @throws \InvalidArgumentException For invalid status code arguments.
53
     */
51
     */
54
    public function withStatus(int $code, string $reasonPhrase = '');
52
    public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface;
Zeile 55... Zeile 53...
55
 
53
 
56
    /**
54
    /**
57
     * Gets the response reason phrase associated with the status code.
55
     * Gets the response reason phrase associated with the status code.
58
     *
56
     *
Zeile 64... Zeile 62...
64
     *
62
     *
65
     * @link http://tools.ietf.org/html/rfc7231#section-6
63
     * @link http://tools.ietf.org/html/rfc7231#section-6
66
     * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
64
     * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
67
     * @return string Reason phrase; must return an empty string if none present.
65
     * @return string Reason phrase; must return an empty string if none present.
68
     */
66
     */
69
    public function getReasonPhrase();
67
    public function getReasonPhrase(): string;
70
}
68
}