public function hasExplicitBinding(string $type, $name = null): bool
    {
        if (PropertyBinding::TYPE === $type) {
            return $this->hasProperty($name);
        }

        $bindingName = $this->bindingName($name);
        if (null !== $bindingName && isset($this->index[$type . '#' . $bindingName])) {
            return true;
        }

        if (isset($this->index[$type])) {
            return true;
        }

        return false;
    }
public function hasExplicitBinding(string $type, $name = null): bool
    {
        if (PropertyBinding::TYPE === $type) {
            return $this->hasProperty($name);
        }

        $bindingName = $this->bindingName($name);
        if (null !== $bindingName && isset($this->index[$type . '#' . $bindingName])) {
            return true;
        }

        if (isset($this->index[$type])) {
            return true;
        }

        return false;
    }
public function hasExplicitBinding ( string $ type , $ name = null ) : bool { if ( PropertyBinding :: TYPE === $ type ) { return $ this -> hasProperty ( $ name ) ; } $ bindingName = $ this -> bindingName ( $ name ) ; if ( null !== $ bindingName && isset ( $ this -> index [ $ type . '#' . $ bindingName ] ) ) { return true ; } if ( isset ( $ this -> index [ $ type ] ) ) { return true ; } return false ; }
check whether an excplicit binding for a type is available

Be aware that implicit bindings turn into explicit bindings when
hasBinding() or getInstance() are called.

@api
@param   string   $type
@param   string   $name
@return  boolean
check whether an excplicit binding for a type is available