protected function matchPositionMode($mode)
    {
        if ($mode === 'up') {
            return UpdatePositionEvent::POSITION_UP;
        }

        if ($mode === 'down') {
            return UpdatePositionEvent::POSITION_DOWN;
        }

        return UpdatePositionEvent::POSITION_ABSOLUTE;
    }
protected function matchPositionMode($mode)
    {
        if ($mode === 'up') {
            return UpdatePositionEvent::POSITION_UP;
        }

        if ($mode === 'down') {
            return UpdatePositionEvent::POSITION_DOWN;
        }

        return UpdatePositionEvent::POSITION_ABSOLUTE;
    }
protected function matchPositionMode ( $ mode ) { if ( $ mode === 'up' ) { return UpdatePositionEvent :: POSITION_UP ; } if ( $ mode === 'down' ) { return UpdatePositionEvent :: POSITION_DOWN ; } return UpdatePositionEvent :: POSITION_ABSOLUTE ; }
Match position mode string against position mode constant value

@param null|string $mode Position mode string

@return integer Position mode constant value
Match position mode string against position mode constant value