lib/Adrenth/Tvrage/Response/Handler/ResponseHandlerFactory.php
public static function create($handler, $xml)
    {
        switch ($handler) {
            case 'Search':
                return new SearchResponseHandler($xml);
            case 'FullSearch':
                return new FullSearchResponseHandler($xml);
            case 'ShowInfo':
                return new ShowInfoResponseHandler($xml);
            case 'EpisodeList':
                return new EpisodeListResponseHandler($xml);
            case 'EpisodeInfo':
                return new EpisodeInfoResponseHandler($xml);
            default:
                throw new InvalidHandlerException('Unknown handler ' . $handler);
        }
    }
public static function create($handler, $xml)
    {
        switch ($handler) {
            case 'Search':
                return new SearchResponseHandler($xml);
            case 'FullSearch':
                return new FullSearchResponseHandler($xml);
            case 'ShowInfo':
                return new ShowInfoResponseHandler($xml);
            case 'EpisodeList':
                return new EpisodeListResponseHandler($xml);
            case 'EpisodeInfo':
                return new EpisodeInfoResponseHandler($xml);
            default:
                throw new InvalidHandlerException('Unknown handler ' . $handler);
        }
    }
public static function create ( $ handler , $ xml ) { switch ( $ handler ) { case 'Search' : return new SearchResponseHandler ( $ xml ) ; case 'FullSearch' : return new FullSearchResponseHandler ( $ xml ) ; case 'ShowInfo' : return new ShowInfoResponseHandler ( $ xml ) ; case 'EpisodeList' : return new EpisodeListResponseHandler ( $ xml ) ; case 'EpisodeInfo' : return new EpisodeInfoResponseHandler ( $ xml ) ; default : throw new InvalidHandlerException ( 'Unknown handler ' . $ handler ) ; } }
Creates an instance of ResponseHandler

@param string $handler
@param string $xml
@return ResponseHandlerInterface
@throws InvalidHandlerException
Creates an instance of ResponseHandler