protected function validateObserver($observer): bool
    {
        return !$this->isDisable($observer)
            && (new ReflectionClass($observer))->implementsInterface(EventHandlerInterface::class)
            && $this->accessible($observer);
    }
protected function validateObserver($observer): bool
    {
        return !$this->isDisable($observer)
            && (new ReflectionClass($observer))->implementsInterface(EventHandlerInterface::class)
            && $this->accessible($observer);
    }
protected function validateObserver ( $ observer ) : bool { return ! $ this -> isDisable ( $ observer ) && ( new ReflectionClass ( $ observer ) ) -> implementsInterface ( EventHandlerInterface :: class ) && $ this -> accessible ( $ observer ) ; }
Validate the given observer.

@param mixed $observer

@return bool

@throws \ReflectionException
Validate the given observer .