original_string: public function getRegisteredObject()
      {
          if($this->registeredObject == null)
          {
              $di = jaxon()->di();
              // Use the Reflection class to get the parameters of the constructor
              if(($constructor = $this->reflectionClass->getConstructor()) != null)
              {
                  $parameters = $constructor->getParameters();
                  $parameterInstances = [];
                  foreach($parameters as $parameter)
                  {
                      // Get the parameter instance from the DI
                      $parameterInstances[] = $di->get($parameter->getClass()->getName());
                  }
                  $this->registeredObject = $this->reflectionClass->newInstanceArgs($parameterInstances);
              }
              else
              {
                  $this->registeredObject = $this->reflectionClass->newInstance();
              }
          }
          return $this->registeredObject;
      }
code: public function getRegisteredObject()
      {
          if($this->registeredObject == null)
          {
              $di = jaxon()->di();
              // Use the Reflection class to get the parameters of the constructor
              if(($constructor = $this->reflectionClass->getConstructor()) != null)
              {
                  $parameters = $constructor->getParameters();
                  $parameterInstances = [];
                  foreach($parameters as $parameter)
                  {
                      // Get the parameter instance from the DI
                      $parameterInstances[] = $di->get($parameter->getClass()->getName());
                  }
                  $this->registeredObject = $this->reflectionClass->newInstanceArgs($parameterInstances);
              }
              else
              {
                  $this->registeredObject = $this->reflectionClass->newInstance();
              }
          }
          return $this->registeredObject;
      }
code_tokens: public function getRegisteredObject ( ) { if ( $ this -> registeredObject == null ) { $ di = jaxon ( ) -> di ( ) ; // Use the Reflection class to get the parameters of the constructor if ( ( $ constructor = $ this -> reflectionClass -> getConstructor ( ) ) != null ) { $ parameters = $ constructor -> getParameters ( ) ; $ parameterInstances = [ ] ; foreach ( $ parameters as $ parameter ) { // Get the parameter instance from the DI $ parameterInstances [ ] = $ di -> get ( $ parameter -> getClass ( ) -> getName ( ) ) ; } $ this -> registeredObject = $ this -> reflectionClass -> newInstanceArgs ( $ parameterInstances ) ; } else { $ this -> registeredObject = $ this -> reflectionClass -> newInstance ( ) ; } } return $ this -> registeredObject ; }
docstring: Return the registered callable object
  
  @return object
docstring_tokens: Return the registered callable object