container = $container; $this->closure = $closure; } /** * Calls the Closure handled by the builder to return the built implementation. * * @return mixed The built implementation. */ public function build() { $closure = $this->closure; return $closure($this->container); } }