PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.19
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.19
1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 1.9.14 All 163 releases
woocommerce-pos / vendor_prefixed / psr / http-factory / src / StreamFactoryInterface.php

StreamFactoryInterface.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.19, at vendor_prefixed/psr/http-factory/src/StreamFactoryInterface.php

44 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WCPOS\Vendor\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 * Create a stream from an existing file.
19 *
20 * The file MUST be opened using the given mode, which may be any mode
21 * supported by the `fopen` function.
22 *
23 * The `$filename` MAY be any string supported by `fopen()`.
24 *
25 * @param string $filename Filename or stream URI to use as basis of stream.
26 * @param string $mode Mode with which to open the underlying filename/stream.
27 *
28 * @return StreamInterface
29 * @throws \RuntimeException If the file cannot be opened.
30 * @throws \InvalidArgumentException If the mode is invalid.
31 */
32 public function createStreamFromFile(string $filename, string $mode = 'r') : StreamInterface;
33 /**
34 * Create a new stream from an existing resource.
35 *
36 * The stream MUST be readable and may be writable.
37 *
38 * @param resource $resource PHP resource to use as basis of stream.
39 *
40 * @return StreamInterface
41 */
42 public function createStreamFromResource($resource) : StreamInterface;
43 }
44