src/snac/server/identityReconciliation/stages/MultiStage.php
/**
     * Run function
     *
     * Runs each of the stages in order.  The first stage is not given a list
     * of results to test against (unless provided), however, after the first
     * stage, each subsequent stage is given the former stage's result set as
     * the list.
     *
     * @param \snac\data\Constellation $search The constellation to be evaluated.
     * @param \snac\data\ReconciliationResult[] $list A list of results to evaluate against.  This
     * may be null.
     * @return array An array of results from the final stage that has been
     * run or an empty array.
     *
     */
Run function
Runs each of the stages in order.  The first stage is not given a list
of results to test against (unless provided), however, after the first
stage, each subsequent stage is given the former stage's result set as
the list.

@param \snac\data\Constellation $search The constellation to be evaluated.
@param \snac\data\ReconciliationResult[] $list A list of results to evaluate against.  This
may be null.
@return array An array of results from the final stage that has been
run or an empty array.
Run function Runs each of the stages in order . The first stage is not given a list of results to test against ( unless provided ) however after the first stage each subsequent stage is given the former stage ' s result set as the list . @param \ snac \ data \ Constellation $search The constellation to be evaluated . @param \ snac \ data \ ReconciliationResult [] $list A list of results to evaluate against . This may be null . @return array An array of results from the final stage that has been run or an empty array .
public function run($search, $list) {
        $nextList = $list;
        foreach ($this->stages as $stage) {
            $results = $stage->run($search, $nextList);
            $nextList = $results;
        }
        return $results;
    }
public function run ( $ search , $ list ) { $ nextList = $ list ; foreach ( $ this -> stages as $ stage ) { $ results = $ stage -> run ( $ search , $ nextList ) ; $ nextList = $ results ; } return $ results ; }
Run function
 Runs each of the stages in order.
Run function Runs each of the stages in order .
// Run the stage with the current list of IDs // Empty out the list of next ids