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 28... Zeile 26...
28
     *
26
     *
29
     * @return StreamInterface Stream representation of the uploaded file.
27
     * @return StreamInterface Stream representation of the uploaded file.
30
     * @throws \RuntimeException in cases when no stream is available or can be
28
     * @throws \RuntimeException in cases when no stream is available or can be
31
     *     created.
29
     *     created.
32
     */
30
     */
33
    public function getStream();
31
    public function getStream(): StreamInterface;
Zeile 34... Zeile 32...
34
 
32
 
35
    /**
33
    /**
36
     * Move the uploaded file to a new location.
34
     * Move the uploaded file to a new location.
37
     *
35
     *
Zeile 62... Zeile 60...
62
     * @param string $targetPath Path to which to move the uploaded file.
60
     * @param string $targetPath Path to which to move the uploaded file.
63
     * @throws \InvalidArgumentException if the $targetPath specified is invalid.
61
     * @throws \InvalidArgumentException if the $targetPath specified is invalid.
64
     * @throws \RuntimeException on any error during the move operation, or on
62
     * @throws \RuntimeException on any error during the move operation, or on
65
     *     the second or subsequent call to the method.
63
     *     the second or subsequent call to the method.
66
     */
64
     */
67
    public function moveTo(string $targetPath);
65
    public function moveTo(string $targetPath): void;
Zeile 68... Zeile 66...
68
    
66
    
69
    /**
67
    /**
70
     * Retrieve the file size.
68
     * Retrieve the file size.
71
     *
69
     *
72
     * Implementations SHOULD return the value stored in the "size" key of
70
     * Implementations SHOULD return the value stored in the "size" key of
73
     * the file in the $_FILES array if available, as PHP calculates this based
71
     * the file in the $_FILES array if available, as PHP calculates this based
74
     * on the actual size transmitted.
72
     * on the actual size transmitted.
75
     *
73
     *
76
     * @return int|null The file size in bytes or null if unknown.
74
     * @return int|null The file size in bytes or null if unknown.
77
     */
75
     */
Zeile 78... Zeile 76...
78
    public function getSize();
76
    public function getSize(): ?int;
79
    
77
    
80
    /**
78
    /**
81
     * Retrieve the error associated with the uploaded file.
79
     * Retrieve the error associated with the uploaded file.
Zeile 89... Zeile 87...
89
     * the file in the $_FILES array.
87
     * the file in the $_FILES array.
90
     *
88
     *
91
     * @see http://php.net/manual/en/features.file-upload.errors.php
89
     * @see http://php.net/manual/en/features.file-upload.errors.php
92
     * @return int One of PHP's UPLOAD_ERR_XXX constants.
90
     * @return int One of PHP's UPLOAD_ERR_XXX constants.
93
     */
91
     */
94
    public function getError();
92
    public function getError(): int;
Zeile 95... Zeile 93...
95
    
93
    
96
    /**
94
    /**
97
     * Retrieve the filename sent by the client.
95
     * Retrieve the filename sent by the client.
98
     *
96
     *
Zeile 104... Zeile 102...
104
     * the file in the $_FILES array.
102
     * the file in the $_FILES array.
105
     *
103
     *
106
     * @return string|null The filename sent by the client or null if none
104
     * @return string|null The filename sent by the client or null if none
107
     *     was provided.
105
     *     was provided.
108
     */
106
     */
109
    public function getClientFilename();
107
    public function getClientFilename(): ?string;
Zeile 110... Zeile 108...
110
    
108
    
111
    /**
109
    /**
112
     * Retrieve the media type sent by the client.
110
     * Retrieve the media type sent by the client.
113
     *
111
     *
Zeile 119... Zeile 117...
119
     * the file in the $_FILES array.
117
     * the file in the $_FILES array.
120
     *
118
     *
121
     * @return string|null The media type sent by the client or null if none
119
     * @return string|null The media type sent by the client or null if none
122
     *     was provided.
120
     *     was provided.
123
     */
121
     */
124
    public function getClientMediaType();
122
    public function getClientMediaType(): ?string;
125
}
123
}