MultipartFormDataMatcher
in package
implements
RequestMatcherInterface
Uses
SeekableStreamDataExtractor
Class MultipartFormDataMatcher
Tags
Interfaces, Classes, Traits and Enums
- RequestMatcherInterface
- Interface RequestMatcherInterface
Table of Contents
- __construct() : mixed
- MultipartFormDataMatcher constructor.
- matches() : bool
- Returns true if request is matched by this matcher.
Methods
__construct()
MultipartFormDataMatcher constructor.
public
__construct(callable $callback) : mixed
Parameters
- $callback : callable
-
Accepts Riverline\MultiPartParser\StreamedPart as an argument, returns true if matched.
Return values
mixed —matches()
Returns true if request is matched by this matcher.
public
matches(RequestInterface $request) : bool
Parameters
- $request : RequestInterface