src/Api/Type/BindingType.php
public function acceptsBinding($binding)
    {
        return $binding instanceof $this->acceptedBindingClass
            || $binding === $this->acceptedBindingClass
            || is_subclass_of($binding, $this->acceptedBindingClass);
    }
public function acceptsBinding($binding)
    {
        return $binding instanceof $this->acceptedBindingClass
            || $binding === $this->acceptedBindingClass
            || is_subclass_of($binding, $this->acceptedBindingClass);
    }
public function acceptsBinding ( $ binding ) { return $ binding instanceof $ this -> acceptedBindingClass || $ binding === $ this -> acceptedBindingClass || is_subclass_of ( $ binding , $ this -> acceptedBindingClass ) ; }
Returns whether the type accepts a binding class.

@param Binding|string $binding The binding or the fully-qualified name of
the binding class.

@return bool Returns `true` if the binding can be bound to this type and
`false` otherwise.
Returns whether the type accepts a binding class .