src/WasabiLib/Wizard/StepCollection.php
public function isPenultimate($identifier) {
        $this->getLast();
        $iterator = $this->getIterator();
        $iterator->seek($iterator->count() - 2);
        $penultimate = $iterator->current();
        if ($identifier instanceof StepController) {
            $identifierName = $identifier->getName();
            if ($identifierName == $penultimate->getName())
                return true;
            else return false;
        }
        return false;
    }
public function isPenultimate($identifier) {
        $this->getLast();
        $iterator = $this->getIterator();
        $iterator->seek($iterator->count() - 2);
        $penultimate = $iterator->current();
        if ($identifier instanceof StepController) {
            $identifierName = $identifier->getName();
            if ($identifierName == $penultimate->getName())
                return true;
            else return false;
        }
        return false;
    }
public function isPenultimate ( $ identifier ) { $ this -> getLast ( ) ; $ iterator = $ this -> getIterator ( ) ; $ iterator -> seek ( $ iterator -> count ( ) - 2 ) ; $ penultimate = $ iterator -> current ( ) ; if ( $ identifier instanceof StepController ) { $ identifierName = $ identifier -> getName ( ) ; if ( $ identifierName == $ penultimate -> getName ( ) ) return true ; else return false ; } return false ; }
return true if IdentifierStep is the penultimate Step
@param $identifier
@return bool
return true if IdentifierStep is the penultimate Step