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 25... Zeile 23...
25
     * string casting operations.
23
     * string casting operations.
26
     *
24
     *
27
     * @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
25
     * @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
28
     * @return string
26
     * @return string
29
     */
27
     */
30
    public function __toString();
28
    public function __toString(): string;
Zeile 31... Zeile 29...
31
 
29
 
32
    /**
30
    /**
33
     * Closes the stream and any underlying resources.
31
     * Closes the stream and any underlying resources.
34
     *
32
     *
35
     * @return void
33
     * @return void
36
     */
34
     */
Zeile 37... Zeile 35...
37
    public function close();
35
    public function close(): void;
38
 
36
 
39
    /**
37
    /**
40
     * Separates any underlying resources from the stream.
38
     * Separates any underlying resources from the stream.
Zeile 48... Zeile 46...
48
    /**
46
    /**
49
     * Get the size of the stream if known.
47
     * Get the size of the stream if known.
50
     *
48
     *
51
     * @return int|null Returns the size in bytes if known, or null if unknown.
49
     * @return int|null Returns the size in bytes if known, or null if unknown.
52
     */
50
     */
53
    public function getSize();
51
    public function getSize(): ?int;
Zeile 54... Zeile 52...
54
 
52
 
55
    /**
53
    /**
56
     * Returns the current position of the file read/write pointer
54
     * Returns the current position of the file read/write pointer
57
     *
55
     *
58
     * @return int Position of the file pointer
56
     * @return int Position of the file pointer
59
     * @throws \RuntimeException on error.
57
     * @throws \RuntimeException on error.
60
     */
58
     */
Zeile 61... Zeile 59...
61
    public function tell();
59
    public function tell(): int;
62
 
60
 
63
    /**
61
    /**
64
     * Returns true if the stream is at the end of the stream.
62
     * Returns true if the stream is at the end of the stream.
65
     *
63
     *
66
     * @return bool
64
     * @return bool
Zeile 67... Zeile 65...
67
     */
65
     */
68
    public function eof();
66
    public function eof(): bool;
69
 
67
 
70
    /**
68
    /**
71
     * Returns whether or not the stream is seekable.
69
     * Returns whether or not the stream is seekable.
72
     *
70
     *
Zeile 73... Zeile 71...
73
     * @return bool
71
     * @return bool
74
     */
72
     */
75
    public function isSeekable();
73
    public function isSeekable(): bool;
76
 
74
 
Zeile 84... Zeile 82...
84
     *     PHP $whence values for `fseek()`.  SEEK_SET: Set position equal to
82
     *     PHP $whence values for `fseek()`.  SEEK_SET: Set position equal to
85
     *     offset bytes SEEK_CUR: Set position to current location plus offset
83
     *     offset bytes SEEK_CUR: Set position to current location plus offset
86
     *     SEEK_END: Set position to end-of-stream plus offset.
84
     *     SEEK_END: Set position to end-of-stream plus offset.
87
     * @throws \RuntimeException on failure.
85
     * @throws \RuntimeException on failure.
88
     */
86
     */
89
    public function seek(int $offset, int $whence = SEEK_SET);
87
    public function seek(int $offset, int $whence = SEEK_SET): void;
Zeile 90... Zeile 88...
90
 
88
 
91
    /**
89
    /**
92
     * Seek to the beginning of the stream.
90
     * Seek to the beginning of the stream.
93
     *
91
     *
Zeile 96... Zeile 94...
96
     *
94
     *
97
     * @see seek()
95
     * @see seek()
98
     * @link http://www.php.net/manual/en/function.fseek.php
96
     * @link http://www.php.net/manual/en/function.fseek.php
99
     * @throws \RuntimeException on failure.
97
     * @throws \RuntimeException on failure.
100
     */
98
     */
101
    public function rewind();
99
    public function rewind(): void;
Zeile 102... Zeile 100...
102
 
100
 
103
    /**
101
    /**
104
     * Returns whether or not the stream is writable.
102
     * Returns whether or not the stream is writable.
105
     *
103
     *
106
     * @return bool
104
     * @return bool
107
     */
105
     */
Zeile 108... Zeile 106...
108
    public function isWritable();
106
    public function isWritable(): bool;
109
 
107
 
110
    /**
108
    /**
111
     * Write data to the stream.
109
     * Write data to the stream.
112
     *
110
     *
113
     * @param string $string The string that is to be written.
111
     * @param string $string The string that is to be written.
114
     * @return int Returns the number of bytes written to the stream.
112
     * @return int Returns the number of bytes written to the stream.
115
     * @throws \RuntimeException on failure.
113
     * @throws \RuntimeException on failure.
Zeile 116... Zeile 114...
116
     */
114
     */
117
    public function write(string $string);
115
    public function write(string $string): int;
118
 
116
 
119
    /**
117
    /**
120
     * Returns whether or not the stream is readable.
118
     * Returns whether or not the stream is readable.
121
     *
119
     *
Zeile 122... Zeile 120...
122
     * @return bool
120
     * @return bool
123
     */
121
     */
124
    public function isReadable();
122
    public function isReadable(): bool;
125
 
123
 
Zeile 131... Zeile 129...
131
     *     call returns fewer bytes.
129
     *     call returns fewer bytes.
132
     * @return string Returns the data read from the stream, or an empty string
130
     * @return string Returns the data read from the stream, or an empty string
133
     *     if no bytes are available.
131
     *     if no bytes are available.
134
     * @throws \RuntimeException if an error occurs.
132
     * @throws \RuntimeException if an error occurs.
135
     */
133
     */
136
    public function read(int $length);
134
    public function read(int $length): string;
Zeile 137... Zeile 135...
137
 
135
 
138
    /**
136
    /**
139
     * Returns the remaining contents in a string
137
     * Returns the remaining contents in a string
140
     *
138
     *
141
     * @return string
139
     * @return string
142
     * @throws \RuntimeException if unable to read or an error occurs while
140
     * @throws \RuntimeException if unable to read or an error occurs while
143
     *     reading.
141
     *     reading.
144
     */
142
     */
Zeile 145... Zeile 143...
145
    public function getContents();
143
    public function getContents(): string;
146
 
144
 
147
    /**
145
    /**
148
     * Get stream metadata as an associative array or retrieve a specific key.
146
     * Get stream metadata as an associative array or retrieve a specific key.