code/libraries/joomlatools/library/event/publisher/profiler.php
public function setDelegate($delegate)
    {
        if (!$delegate instanceof KEventPublisherInterface) {
            throw new InvalidArgumentException('Delegate: '.get_class($delegate).' does not implement KEventPublisherInterface');
        }

        return parent::setDelegate($delegate);
    }
public function setDelegate($delegate)
    {
        if (!$delegate instanceof KEventPublisherInterface) {
            throw new InvalidArgumentException('Delegate: '.get_class($delegate).' does not implement KEventPublisherInterface');
        }

        return parent::setDelegate($delegate);
    }
public function setDelegate ( $ delegate ) { if ( ! $ delegate instanceof KEventPublisherInterface ) { throw new InvalidArgumentException ( 'Delegate: ' . get_class ( $ delegate ) . ' does not implement KEventPublisherInterface' ) ; } return parent :: setDelegate ( $ delegate ) ; }
Set the decorated event dispatcher

@param   KEventPublisherInterface $delegate The decorated event publisher
@return  KEventPublisherProfiler
@throws  InvalidArgumentException If the delegate is not an event publisher
Set the decorated event dispatcher