protected function getStats () : array
    {
        if (!$this->_StatsDone) :
            foreach ($this->_Stats['tally'] as &$Roundvalue) :
                foreach ($Roundvalue as $ArcKey => &$Arcvalue) :
                    foreach ($Arcvalue as $key => &$value) :
                        if ($key === 'from' || $key === 'to') :
                            $value = $this->_selfElection->getCandidateId($value, true);
                        endif;
                    endforeach;
                endforeach;
            endforeach;

            foreach ($this->_Stats['arcs'] as $ArcKey => &$Arcvalue) :
                foreach ($Arcvalue as $key => &$value) :
                    if ($key === 'from' || $key === 'to') :
                        $value = $this->_selfElection->getCandidateId($value, true);
                    endif;
                endforeach;
            endforeach;

            $this->_StatsDone = true;
        endif;

        return $this->_Stats;
    }
protected function getStats () : array
    {
        if (!$this->_StatsDone) :
            foreach ($this->_Stats['tally'] as &$Roundvalue) :
                foreach ($Roundvalue as $ArcKey => &$Arcvalue) :
                    foreach ($Arcvalue as $key => &$value) :
                        if ($key === 'from' || $key === 'to') :
                            $value = $this->_selfElection->getCandidateId($value, true);
                        endif;
                    endforeach;
                endforeach;
            endforeach;

            foreach ($this->_Stats['arcs'] as $ArcKey => &$Arcvalue) :
                foreach ($Arcvalue as $key => &$value) :
                    if ($key === 'from' || $key === 'to') :
                        $value = $this->_selfElection->getCandidateId($value, true);
                    endif;
                endforeach;
            endforeach;

            $this->_StatsDone = true;
        endif;

        return $this->_Stats;
    }
protected function getStats ( ) : array { if ( ! $ this -> _StatsDone ) : foreach ( $ this -> _Stats [ 'tally' ] as & $ Roundvalue ) : foreach ( $ Roundvalue as $ ArcKey => & $ Arcvalue ) : foreach ( $ Arcvalue as $ key => & $ value ) : if ( $ key === 'from' || $ key === 'to' ) : $ value = $ this -> _selfElection -> getCandidateId ( $ value , true ) ; endif ; endforeach ; endforeach ; endforeach ; foreach ( $ this -> _Stats [ 'arcs' ] as $ ArcKey => & $ Arcvalue ) : foreach ( $ Arcvalue as $ key => & $ value ) : if ( $ key === 'from' || $ key === 'to' ) : $ value = $ this -> _selfElection -> getCandidateId ( $ value , true ) ; endif ; endforeach ; endforeach ; $ this -> _StatsDone = true ; endif ; return $ this -> _Stats ; }
Get the Ranked Pair ranking
Get the Ranked Pair ranking