src/Transformer/Factory.php
protected function getBinding($class)
    {
        if ($this->isCollection($class) && ! $class->isEmpty()) {
            return $this->getBindingFromCollection($class);
        }

        $class = is_object($class) ? get_class($class) : $class;

        if (! $this->hasBinding($class)) {
            throw new RuntimeException('Unable to find bound transformer for "'.$class.'" class.');
        }

        return $this->bindings[$class];
    }
protected function getBinding($class)
    {
        if ($this->isCollection($class) && ! $class->isEmpty()) {
            return $this->getBindingFromCollection($class);
        }

        $class = is_object($class) ? get_class($class) : $class;

        if (! $this->hasBinding($class)) {
            throw new RuntimeException('Unable to find bound transformer for "'.$class.'" class.');
        }

        return $this->bindings[$class];
    }
protected function getBinding ( $ class ) { if ( $ this -> isCollection ( $ class ) && ! $ class -> isEmpty ( ) ) { return $ this -> getBindingFromCollection ( $ class ) ; } $ class = is_object ( $ class ) ? get_class ( $ class ) : $ class ; if ( ! $ this -> hasBinding ( $ class ) ) { throw new RuntimeException ( 'Unable to find bound transformer for "' . $ class . '" class.' ) ; } return $ this -> bindings [ $ class ] ; }
Get a registered transformer binding.

@param string|object $class

@throws \RuntimeException

@return \Dingo\Api\Transformer\Binding
Get a registered transformer binding .