Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile -... Zeile 2...
-
 
2
 
-
 
3
declare(strict_types=1);
2
 
4
 
Zeile 3... Zeile 5...
3
namespace Psr\Http\Message;
5
namespace Psr\Http\Message;
4
 
6
 
5
/**
7
/**
Zeile 47... Zeile 49...
47
     *     provided status code; if none is provided, implementations MAY
49
     *     provided status code; if none is provided, implementations MAY
48
     *     use the defaults as suggested in the HTTP specification.
50
     *     use the defaults as suggested in the HTTP specification.
49
     * @return static
51
     * @return static
50
     * @throws \InvalidArgumentException For invalid status code arguments.
52
     * @throws \InvalidArgumentException For invalid status code arguments.
51
     */
53
     */
52
    public function withStatus($code, $reasonPhrase = '');
54
    public function withStatus(int $code, string $reasonPhrase = '');
Zeile 53... Zeile 55...
53
 
55
 
54
    /**
56
    /**
55
     * Gets the response reason phrase associated with the status code.
57
     * Gets the response reason phrase associated with the status code.
56
     *
58
     *