original_string: protected function storeService(string $name, array $config, $service)
      {
          if (false === $config['singleton']) {
              return $service;
          }
          $this->service[$name] = $service;
  
          if (isset($this->children[$name])) {
              $this->children[$name]->setParentService($service);
          }
  
          return $service;
      }
code: protected function storeService(string $name, array $config, $service)
      {
          if (false === $config['singleton']) {
              return $service;
          }
          $this->service[$name] = $service;
  
          if (isset($this->children[$name])) {
              $this->children[$name]->setParentService($service);
          }
  
          return $service;
      }
code_tokens: protected function storeService ( string $ name , array $ config , $ service ) { if ( false === $ config [ 'singleton' ] ) { return $ service ; } $ this -> service [ $ name ] = $ service ; if ( isset ( $ this -> children [ $ name ] ) ) { $ this -> children [ $ name ] -> setParentService ( $ service ) ; } return $ service ; }
docstring: Store service.
docstring_tokens: Store service .