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

        if (is_int($key) && $key > 0) {
            return $steps[$key-1];
        }

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

        if (is_int($key) && $key > 0) {
            return $steps[$key-1];
        }

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