Lines Matching refs:options
47 * This class accepts an associative array of configuration options.
63 * @param array $config Associative array of options.
108 * This function accepts the same options as AsyncReadStream::__construct,
127 * @param array $options Associative array of options.
132 public static function create(array $options = [])
134 $maxBuffer = isset($options['max_buffer'])
135 ? $options['max_buffer']
140 } elseif (isset($options['buffer'])) {
141 $buffer = $options['buffer'];
143 $hwm = isset($options['hwm']) ? $options['hwm'] : 16384;
148 $buffer = new DroppingStream($buffer, $options['max_buffer']);
152 if (isset($options['write'])) {
153 $onWrite = $options['write'];
163 return [$buffer, new self($buffer, $options)];