private function getEventNameParts($event) {
        $parts = ['*'];
        $offset = 0;

        while ($offset = strpos($event, '.', $offset + 1)) {
            $parts[] = substr($event, 0, $offset) . '.*';
        }

        $parts[] = $event;

        return $parts;
    }
private function getEventNameParts($event) {
        $parts = ['*'];
        $offset = 0;

        while ($offset = strpos($event, '.', $offset + 1)) {
            $parts[] = substr($event, 0, $offset) . '.*';
        }

        $parts[] = $event;

        return $parts;
    }
private function getEventNameParts ( $ event ) { $ parts = [ '*' ] ; $ offset = 0 ; while ( $ offset = strpos ( $ event , '.' , $ offset + 1 ) ) { $ parts [ ] = substr ( $ event , 0 , $ offset ) . '.*' ; } $ parts [ ] = $ event ; return $ parts ; }
Get all parts of an event name

@param string $event
@param string[]
Get all parts of an event name