protected function findTargetByArguments($targetOrEvent)
    {

        if ($targetOrEvent instanceof Bus) {
            return $targetOrEvent;
        }

        if ($this->target instanceof Bus) {
            return $this->target;
        }

        if ($this->source instanceof Bus) {
            return $this->source;
        }

        throw new LogicException('No suitable source found to map event. No target passed, no target setted, source is no Bus. Giving up.');
    }
protected function findTargetByArguments($targetOrEvent)
    {

        if ($targetOrEvent instanceof Bus) {
            return $targetOrEvent;
        }

        if ($this->target instanceof Bus) {
            return $this->target;
        }

        if ($this->source instanceof Bus) {
            return $this->source;
        }

        throw new LogicException('No suitable source found to map event. No target passed, no target setted, source is no Bus. Giving up.');
    }
protected function findTargetByArguments ( $ targetOrEvent ) { if ( $ targetOrEvent instanceof Bus ) { return $ targetOrEvent ; } if ( $ this -> target instanceof Bus ) { return $ this -> target ; } if ( $ this -> source instanceof Bus ) { return $ this -> source ; } throw new LogicException ( 'No suitable source found to map event. No target passed, no target setted, source is no Bus. Giving up.' ) ; }
Helps the to method to find the right target.

@param mixed $targetOrEvent

@return Bus
Helps the to method to find the right target .