public function getAllSurpriseValues() {
        $allSurprises = array();
        foreach ( $this->nodes as $node ) {
            if ( $node->start != -1 && $node->end != -1 ) {
                $allSurprises[] = $node->surpriseValue;
            }
        }
        return $allSurprises;
    }
public function getAllSurpriseValues() {
        $allSurprises = array();
        foreach ( $this->nodes as $node ) {
            if ( $node->start != -1 && $node->end != -1 ) {
                $allSurprises[] = $node->surpriseValue;
            }
        }
        return $allSurprises;
    }
public function getAllSurpriseValues ( ) { $ allSurprises = array ( ) ; foreach ( $ this -> nodes as $ node ) { if ( $ node -> start != - 1 && $ node -> end != - 1 ) { $ allSurprises [ ] = $ node -> surpriseValue ; } } return $ allSurprises ; }
Returns an array containing the surprise values of
each node of this tree.

@return array The array
Returns an array containing the surprise values of each node of this tree .