public function clear()/*# : bool */
    {
        $ends = [ $this->front, $this->back ];
        foreach ($ends as $end) {
            if (!$end->clear()) {
                return $this->falseAndSetError(
                    $end->getError(),
                    $end->getErrorCode()
                );
            }
        }
        return $this->trueAndFlushError();
    }
public function clear()/*# : bool */
    {
        $ends = [ $this->front, $this->back ];
        foreach ($ends as $end) {
            if (!$end->clear()) {
                return $this->falseAndSetError(
                    $end->getError(),
                    $end->getErrorCode()
                );
            }
        }
        return $this->trueAndFlushError();
    }
public function clear ( ) /*# : bool */ { $ ends = [ $ this -> front , $ this -> back ] ; foreach ( $ ends as $ end ) { if ( ! $ end -> clear ( ) ) { return $ this -> falseAndSetError ( $ end -> getError ( ) , $ end -> getErrorCode ( ) ) ; } } return $ this -> trueAndFlushError ( ) ; }
Need both ends clear ok

{@inheritDoc}
Need both ends clear ok