src/Matcher.php
public function addCandidates($candidates): Matcher
    {
        $candidates = is_array($candidates) ? $candidates : func_get_args();

        Collection::make($candidates)->each(function ($candidate) {
            $this->addCandidate($candidate);
        });

        return $this;
    }
public function addCandidates($candidates): Matcher
    {
        $candidates = is_array($candidates) ? $candidates : func_get_args();

        Collection::make($candidates)->each(function ($candidate) {
            $this->addCandidate($candidate);
        });

        return $this;
    }
public function addCandidates ( $ candidates ) : Matcher { $ candidates = is_array ( $ candidates ) ? $ candidates : func_get_args ( ) ; Collection :: make ( $ candidates ) -> each ( function ( $ candidate ) { $ this -> addCandidate ( $ candidate ) ; } ) ; return $ this ; }
Helper method to add multiple candidates at once.

@param  mixed   $candidates
@return $this
Helper method to add multiple candidates at once .