InterNations\Component\HttpMock\Matcher\ExtractorFactory::createParamExistsExtractor PHP Method

createParamExistsExtractor() public method

public createParamExistsExtractor ( $param )
    public function createParamExistsExtractor($param)
    {
        return static function (Request $request) use($param) {
            return $request->query->has($param);
        };
    }

Usage Example

Example #1
0
 public function queryParamNotExists($param)
 {
     $this->appendMatcher(false, $this->extractorFactory->createParamExistsExtractor($param));
     return $this;
 }