public function get(Container $container)
    {
        if ($this->singleton) {
            if ($this->instance === null) {
                $f = $this->factory;
                $this->instance = $f($container);
            }
            return $this->instance;
        } else {
            $f = $this->factory;
            return $f($container);
        }
    }
public function get(Container $container)
    {
        if ($this->singleton) {
            if ($this->instance === null) {
                $f = $this->factory;
                $this->instance = $f($container);
            }
            return $this->instance;
        } else {
            $f = $this->factory;
            return $f($container);
        }
    }
public function get ( Container $ container ) { if ( $ this -> singleton ) { if ( $ this -> instance === null ) { $ f = $ this -> factory ; $ this -> instance = $ f ( $ container ) ; } return $ this -> instance ; } else { $ f = $ this -> factory ; return $ f ( $ container ) ; } }
Gets the value instance.

@param \Caridea\Container\Container $container The owning container
@return mixed The value instance
Gets the value instance .