PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.8
Booking for Appointments and Events Calendar – Amelia v2.4.8
2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / psr / http-factory / src / StreamFactoryInterface.php
ameliabooking / vendor / psr / http-factory / src Last commit date
RequestFactoryInterface.php 7 months ago ResponseFactoryInterface.php 7 months ago ServerRequestFactoryInterface.php 7 months ago StreamFactoryInterface.php 7 months ago UploadedFileFactoryInterface.php 7 months ago UriFactoryInterface.php 7 months ago
StreamFactoryInterface.php
46 lines
1 <?php
2
3 namespace AmeliaVendor\Psr\Http\Message;
4
5 interface StreamFactoryInterface
6 {
7 /**
8 * Create a new stream from a string.
9 *
10 * The stream SHOULD be created with a temporary resource.
11 *
12 * @param string $content String content with which to populate the stream.
13 *
14 * @return StreamInterface
15 */
16 public function createStream(string $content = ''): StreamInterface;
17
18 /**
19 * Create a stream from an existing file.
20 *
21 * The file MUST be opened using the given mode, which may be any mode
22 * supported by the `fopen` function.
23 *
24 * The `$filename` MAY be any string supported by `fopen()`.
25 *
26 * @param string $filename Filename or stream URI to use as basis of stream.
27 * @param string $mode Mode with which to open the underlying filename/stream.
28 *
29 * @return StreamInterface
30 * @throws \RuntimeException If the file cannot be opened.
31 * @throws \InvalidArgumentException If the mode is invalid.
32 */
33 public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface;
34
35 /**
36 * Create a new stream from an existing resource.
37 *
38 * The stream MUST be readable and may be writable.
39 *
40 * @param resource $resource PHP resource to use as basis of stream.
41 *
42 * @return StreamInterface
43 */
44 public function createStreamFromResource($resource): StreamInterface;
45 }
46