private function processSearchMultiItem(array $item)
    {
        if (array_key_exists('media_type', $item)) {
            switch ($item['media_type']) {
                case 'movie':
                    return $this->getMovieFactory()->create($item);
                case 'tv':
                    return $this->getTvFactory()->create($item);
                case 'person':
                    return $this->getPeopleFactory()->create($item);
                default:
                    throw new \RuntimeException(sprintf(
                        'Could not process media_type "%s" in multi search, type unknown.',
                        $item['media_type']
                    ));
            }
        }

        return false;
    }
private function processSearchMultiItem(array $item)
    {
        if (array_key_exists('media_type', $item)) {
            switch ($item['media_type']) {
                case 'movie':
                    return $this->getMovieFactory()->create($item);
                case 'tv':
                    return $this->getTvFactory()->create($item);
                case 'person':
                    return $this->getPeopleFactory()->create($item);
                default:
                    throw new \RuntimeException(sprintf(
                        'Could not process media_type "%s" in multi search, type unknown.',
                        $item['media_type']
                    ));
            }
        }

        return false;
    }
private function processSearchMultiItem ( array $ item ) { if ( array_key_exists ( 'media_type' , $ item ) ) { switch ( $ item [ 'media_type' ] ) { case 'movie' : return $ this -> getMovieFactory ( ) -> create ( $ item ) ; case 'tv' : return $ this -> getTvFactory ( ) -> create ( $ item ) ; case 'person' : return $ this -> getPeopleFactory ( ) -> create ( $ item ) ; default : throw new \ RuntimeException ( sprintf ( 'Could not process media_type "%s" in multi search, type unknown.' , $ item [ 'media_type' ] ) ) ; } } return false ; }
Process multi search items

@param  array                                                    $item
@return bool|Movie|Person|Person\CastMember|Person\CrewMember|Tv
@throws \RuntimeException
Process multi search items