protected function guessHandlerType($handler)
    {
        if (!is_object($handler)) {
            return false;
        }

        foreach ($this->availableHandlerTypes as $type => $classFQN) {
            if ($handler instanceof $classFQN) {
                return $type;
            }
        }

        return false;
    }
protected function guessHandlerType($handler)
    {
        if (!is_object($handler)) {
            return false;
        }

        foreach ($this->availableHandlerTypes as $type => $classFQN) {
            if ($handler instanceof $classFQN) {
                return $type;
            }
        }

        return false;
    }
protected function guessHandlerType ( $ handler ) { if ( ! is_object ( $ handler ) ) { return false ; } foreach ( $ this -> availableHandlerTypes as $ type => $ classFQN ) { if ( $ handler instanceof $ classFQN ) { return $ type ; } } return false ; }
Guesses handler type by handler object class FQN.
Basically, it checks if the handler class name exists in the available handler types.

@param object|mixed $handler Any supported resource, which can handle filtration

@return false|string False if the type can not be guessed
Guesses handler type by handler object class FQN . Basically it checks if the handler class name exists in the available handler types .