src/Transformer/Factory.php
protected function hasBinding($class)
    {
        if ($this->isCollection($class) && ! $class->isEmpty()) {
            $class = $class->first();
        }

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

        return isset($this->bindings[$class]);
    }
protected function hasBinding($class)
    {
        if ($this->isCollection($class) && ! $class->isEmpty()) {
            $class = $class->first();
        }

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

        return isset($this->bindings[$class]);
    }
protected function hasBinding ( $ class ) { if ( $ this -> isCollection ( $ class ) && ! $ class -> isEmpty ( ) ) { $ class = $ class -> first ( ) ; } $ class = is_object ( $ class ) ? get_class ( $ class ) : $ class ; return isset ( $ this -> bindings [ $ class ] ) ; }
Determine if a class has a transformer binding.

@param string|object $class

@return bool
Determine if a class has a transformer binding .