private function createInstance()
    {
        if ($this->arguments === null) {
            $this->arguments = [];

            if (null !== ($method = $this->getReflection()->getConstructor())) {
                $this->arguments = $this->getArguments($method);
            }
        }

        return $this->getReflection()->newInstanceArgs($this->arguments);
    }
private function createInstance()
    {
        if ($this->arguments === null) {
            $this->arguments = [];

            if (null !== ($method = $this->getReflection()->getConstructor())) {
                $this->arguments = $this->getArguments($method);
            }
        }

        return $this->getReflection()->newInstanceArgs($this->arguments);
    }
private function createInstance ( ) { if ( $ this -> arguments === null ) { $ this -> arguments = [ ] ; if ( null !== ( $ method = $ this -> getReflection ( ) -> getConstructor ( ) ) ) { $ this -> arguments = $ this -> getArguments ( $ method ) ; } } return $ this -> getReflection ( ) -> newInstanceArgs ( $ this -> arguments ) ; }
Create new object and inject constructor dependencies

@throws \ReflectionException
@throws \Janeiro\Di\Exception
@return object
Create new object and inject constructor dependencies