pock

MultipartFormDataMatcher
in package
implements RequestMatcherInterface Uses SeekableStreamDataExtractor

Class MultipartFormDataMatcher

Tags
category

MultipartFormDataMatcher

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
Tags
inheritDoc
SuppressWarnings

(PHPMD.StaticAccess)

Return values
bool

Search results