src/Serializer/JmsSerializer.php
private function getSourceClassFromMapping(array $params)
    {
        $index = $params['index'];
        $type = $params['type'];
        if (!isset($this->indexTypeClassMap[$index])) {
            throw new DeserializationFailureException('Cannot find index in source class map: ' . $index);
        }

        if (!isset($this->indexTypeClassMap[$index][$type])) {
            throw new DeserializationFailureException(
                'Cannot find type in source class map: ' . $type . ' in index ' . $index
            );
        }

        return $this->indexTypeClassMap[$index][$type];
    }
private function getSourceClassFromMapping(array $params)
    {
        $index = $params['index'];
        $type = $params['type'];
        if (!isset($this->indexTypeClassMap[$index])) {
            throw new DeserializationFailureException('Cannot find index in source class map: ' . $index);
        }

        if (!isset($this->indexTypeClassMap[$index][$type])) {
            throw new DeserializationFailureException(
                'Cannot find type in source class map: ' . $type . ' in index ' . $index
            );
        }

        return $this->indexTypeClassMap[$index][$type];
    }
private function getSourceClassFromMapping ( array $ params ) { $ index = $ params [ 'index' ] ; $ type = $ params [ 'type' ] ; if ( ! isset ( $ this -> indexTypeClassMap [ $ index ] ) ) { throw new DeserializationFailureException ( 'Cannot find index in source class map: ' . $ index ) ; } if ( ! isset ( $ this -> indexTypeClassMap [ $ index ] [ $ type ] ) ) { throw new DeserializationFailureException ( 'Cannot find type in source class map: ' . $ type . ' in index ' . $ index ) ; } return $ this -> indexTypeClassMap [ $ index ] [ $ type ] ; }
gets the source class.

@param array $params

@return string
@author Daniel Wendlandt
gets the source class .