public function withEntryFromClosure(string $key, \Closure $closure): self
    {
        $this->bindings[$key] = $closure;
        return $this;
    }
public function withEntryFromClosure(string $key, \Closure $closure): self
    {
        $this->bindings[$key] = $closure;
        return $this;
    }
public function withEntryFromClosure ( string $ key , \ Closure $ closure ) : self { $ this -> bindings [ $ key ] = $ closure ; return $ this ; }
adds an entry which is created by given closure

@api
@param   string    $key
@param   \Closure  $closure
@return  \stubbles\ioc\binding\MapBinding
@since   2.1.0
adds an entry which is created by given closure