public function getSuccesses($asFlat = false)
    {
        $iterator = true === $asFlat
            ? $this->getRecursiveIterator()
            : $this;

        $successes = array();
		foreach ($iterator as $element) {
		    if ($element->getType() == self::TYPE_SUCCESS) {
		        $successes[] = $element;
		    }
		}
		return $successes;
	}
public function getSuccesses($asFlat = false)
    {
        $iterator = true === $asFlat
            ? $this->getRecursiveIterator()
            : $this;

        $successes = array();
		foreach ($iterator as $element) {
		    if ($element->getType() == self::TYPE_SUCCESS) {
		        $successes[] = $element;
		    }
		}
		return $successes;
	}
public function getSuccesses ( $ asFlat = false ) { $ iterator = true === $ asFlat ? $ this -> getRecursiveIterator ( ) : $ this ; $ successes = array ( ) ; foreach ( $ iterator as $ element ) { if ( $ element -> getType ( ) == self :: TYPE_SUCCESS ) { $ successes [ ] = $ element ; } } return $ successes ; }
returns all success elements

@param bool $asFlat
@return array
returns all success elements