public function getResponder($type)
    {
        if (!is_string($type) || empty($type)) {
            throw new \InvalidArgumentException('The responder type is invalid');
        }

        return $this->responders[$type] ?: null;
    }
public function getResponder($type)
    {
        if (!is_string($type) || empty($type)) {
            throw new \InvalidArgumentException('The responder type is invalid');
        }

        return $this->responders[$type] ?: null;
    }
public function getResponder ( $ type ) { if ( ! is_string ( $ type ) || empty ( $ type ) ) { throw new \ InvalidArgumentException ( 'The responder type is invalid' ) ; } return $ this -> responders [ $ type ] ? : null ; }
Gets the responder of the given type.

@param string $type The type of responder
@return \FlameCore\EventObserver\Responder\ResponderInterface
@throws \InvalidArgumentException if the responder type is invalid.
Gets the responder of the given type .