protected function addBinding(string $interface, IBinding $binding)
    {
        if (!isset($this->bindings[$this->currentTarget])) {
            $this->bindings[$this->currentTarget] = [];
        }

        $this->bindings[$this->currentTarget][$interface] = $binding;
    }
protected function addBinding(string $interface, IBinding $binding)
    {
        if (!isset($this->bindings[$this->currentTarget])) {
            $this->bindings[$this->currentTarget] = [];
        }

        $this->bindings[$this->currentTarget][$interface] = $binding;
    }
protected function addBinding ( string $ interface , IBinding $ binding ) { if ( ! isset ( $ this -> bindings [ $ this -> currentTarget ] ) ) { $ this -> bindings [ $ this -> currentTarget ] = [ ] ; } $ this -> bindings [ $ this -> currentTarget ] [ $ interface ] = $ binding ; }
Adds a binding to an interface

@param string $interface The interface to bind to
@param IBinding $binding The binding to add
Adds a binding to an interface