public function create(Container $container)
    {
        $instance = new $this->className(...$this->constructorArguments->resolve($container)); 

        foreach($this->methodCallers as list($method, $arguments))
        {
            $instance->{$method}(... $arguments->resolve($container));
        }

        return $instance;
    }
public function create(Container $container)
    {
        $instance = new $this->className(...$this->constructorArguments->resolve($container)); 

        foreach($this->methodCallers as list($method, $arguments))
        {
            $instance->{$method}(... $arguments->resolve($container));
        }

        return $instance;
    }
public function create ( Container $ container ) { $ instance = new $ this -> className ( ... $ this -> constructorArguments -> resolve ( $ container ) ) ; foreach ( $ this -> methodCallers as list ( $ method , $ arguments ) ) { $ instance -> { $ method } ( ... $ arguments -> resolve ( $ container ) ) ; } return $ instance ; }
Construct your object, or value based on the given container.

@param Container             $container
@return mixed
Construct your object or value based on the given container .