src/Stub/StubData.php
public function with(...$arguments): Stub
    {
        $this->closeRule();

        if (empty($this->rules)) {
            $defaultAnswerCallback = $this->defaultAnswerCallback;
            $defaultAnswerCallback($this);
            $this->closeRule();
        }

        $this->criteria = $this->matcherFactory->adaptAll($arguments);

        return $this;
    }
public function with(...$arguments): Stub
    {
        $this->closeRule();

        if (empty($this->rules)) {
            $defaultAnswerCallback = $this->defaultAnswerCallback;
            $defaultAnswerCallback($this);
            $this->closeRule();
        }

        $this->criteria = $this->matcherFactory->adaptAll($arguments);

        return $this;
    }
public function with ( ... $ arguments ) : Stub { $ this -> closeRule ( ) ; if ( empty ( $ this -> rules ) ) { $ defaultAnswerCallback = $ this -> defaultAnswerCallback ; $ defaultAnswerCallback ( $ this ) ; $ this -> closeRule ( ) ; } $ this -> criteria = $ this -> matcherFactory -> adaptAll ( $ arguments ) ; return $ this ; }
Modify the current criteria to match the supplied arguments.

@param mixed ...$arguments The arguments.

@return $this This stub.
Modify the current criteria to match the supplied arguments .