Lines Matching refs:methods
13 private $methods;
21 * @param array $methods Hash of method name to a callable.
23 public function __construct(array $methods)
25 $this->methods = $methods;
28 foreach ($methods as $name => $fn) {
34 * Lazily determine which methods are not implemented.
58 * @param array $methods Hash of method name to a closure
62 public static function decorate(StreamInterface $stream, array $methods)
64 // If any of the required methods were not provided, then simply
66 foreach (array_diff(self::$slots, array_keys($methods)) as $diff) {
67 $methods[$diff] = [$stream, $diff];
70 return new self($methods);