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 82... Zeile 84...
82
     *     PHP $whence values for `fseek()`.  SEEK_SET: Set position equal to
84
     *     PHP $whence values for `fseek()`.  SEEK_SET: Set position equal to
83
     *     offset bytes SEEK_CUR: Set position to current location plus offset
85
     *     offset bytes SEEK_CUR: Set position to current location plus offset
84
     *     SEEK_END: Set position to end-of-stream plus offset.
86
     *     SEEK_END: Set position to end-of-stream plus offset.
85
     * @throws \RuntimeException on failure.
87
     * @throws \RuntimeException on failure.
86
     */
88
     */
87
    public function seek($offset, $whence = SEEK_SET);
89
    public function seek(int $offset, int $whence = SEEK_SET);
Zeile 88... Zeile 90...
88
 
90
 
89
    /**
91
    /**
90
     * Seek to the beginning of the stream.
92
     * Seek to the beginning of the stream.
91
     *
93
     *
Zeile 110... Zeile 112...
110
     *
112
     *
111
     * @param string $string The string that is to be written.
113
     * @param string $string The string that is to be written.
112
     * @return int Returns the number of bytes written to the stream.
114
     * @return int Returns the number of bytes written to the stream.
113
     * @throws \RuntimeException on failure.
115
     * @throws \RuntimeException on failure.
114
     */
116
     */
115
    public function write($string);
117
    public function write(string $string);
Zeile 116... Zeile 118...
116
 
118
 
117
    /**
119
    /**
118
     * Returns whether or not the stream is readable.
120
     * Returns whether or not the stream is readable.
119
     *
121
     *
Zeile 129... Zeile 131...
129
     *     call returns fewer bytes.
131
     *     call returns fewer bytes.
130
     * @return string Returns the data read from the stream, or an empty string
132
     * @return string Returns the data read from the stream, or an empty string
131
     *     if no bytes are available.
133
     *     if no bytes are available.
132
     * @throws \RuntimeException if an error occurs.
134
     * @throws \RuntimeException if an error occurs.
133
     */
135
     */
134
    public function read($length);
136
    public function read(int $length);
Zeile 135... Zeile 137...
135
 
137
 
136
    /**
138
    /**
137
     * Returns the remaining contents in a string
139
     * Returns the remaining contents in a string
138
     *
140
     *
Zeile 147... Zeile 149...
147
     *
149
     *
148
     * The keys returned are identical to the keys returned from PHP's
150
     * The keys returned are identical to the keys returned from PHP's
149
     * stream_get_meta_data() function.
151
     * stream_get_meta_data() function.
150
     *
152
     *
151
     * @link http://php.net/manual/en/function.stream-get-meta-data.php
153
     * @link http://php.net/manual/en/function.stream-get-meta-data.php
152
     * @param string $key Specific metadata to retrieve.
154
     * @param string|null $key Specific metadata to retrieve.
153
     * @return array|mixed|null Returns an associative array if no key is
155
     * @return array|mixed|null Returns an associative array if no key is
154
     *     provided. Returns a specific key value if a key is provided and the
156
     *     provided. Returns a specific key value if a key is provided and the
155
     *     value is found, or null if the key is not found.
157
     *     value is found, or null if the key is not found.
156
     */
158
     */
157
    public function getMetadata($key = null);
159
    public function getMetadata(?string $key = null);
158
}
160
}