public function nextStep($step = null)
    {
        $steps = $this->getStepsArray();
        $key = array_search($step, $steps);

        if (is_int($key) && $key < count($steps)-1) {
            return $steps[$key+1];
        }

        return false;
    }
public function nextStep($step = null)
    {
        $steps = $this->getStepsArray();
        $key = array_search($step, $steps);

        if (is_int($key) && $key < count($steps)-1) {
            return $steps[$key+1];
        }

        return false;
    }
public function nextStep ( $ step = null ) { $ steps = $ this -> getStepsArray ( ) ; $ key = array_search ( $ step , $ steps ) ; if ( is_int ( $ key ) && $ key < count ( $ steps ) - 1 ) { return $ steps [ $ key + 1 ] ; } return false ; }
This method returns the next step in the game workflow
@param string $step
@return string
This method returns the next step in the game workflow