original_string: public function initialize($object)
      {
          if (!is_object($object)) {
              return;
          }
  
          foreach ($this->knownDependencies as $interface => $dependencyInfo) {
              list($setterMethod, $serviceId) = $dependencyInfo;
  
              if (is_a($object, $interface)) {
                  $object->$setterMethod($this->container->get($serviceId));
              }
          }
      }
code: public function initialize($object)
      {
          if (!is_object($object)) {
              return;
          }
  
          foreach ($this->knownDependencies as $interface => $dependencyInfo) {
              list($setterMethod, $serviceId) = $dependencyInfo;
  
              if (is_a($object, $interface)) {
                  $object->$setterMethod($this->container->get($serviceId));
              }
          }
      }
code_tokens: public function initialize ( $ object ) { if ( ! is_object ( $ object ) ) { return ; } foreach ( $ this -> knownDependencies as $ interface => $ dependencyInfo ) { list ( $ setterMethod , $ serviceId ) = $ dependencyInfo ; if ( is_a ( $ object , $ interface ) ) { $ object -> $ setterMethod ( $ this -> container -> get ( $ serviceId ) ) ; } } }
docstring: Initializes object dependencies
  
  @param object $object
docstring_tokens: Initializes object dependencies