original_string: public function addResource($format, $resource, $locale, $domain = null)
      {
          if (null !== $domain) {
              $this->domains[] = $domain;
          }
  
          parent::addResource($format, $resource, $locale, $domain);
      }
code: public function addResource($format, $resource, $locale, $domain = null)
      {
          if (null !== $domain) {
              $this->domains[] = $domain;
          }
  
          parent::addResource($format, $resource, $locale, $domain);
      }
code_tokens: public function addResource ( $ format , $ resource , $ locale , $ domain = null ) { if ( null !== $ domain ) { $ this -> domains [ ] = $ domain ; } parent :: addResource ( $ format , $ resource , $ locale , $ domain ) ; }
docstring: Adds a resource.
  
  @see    SymfonyTranslator::addResource() Keep track of the translation domains.
  @param  string      $format   The name of the loader (@see addLoader()).
  @param  mixed       $resource The resource name.
  @param  string      $locale   The locale.
  @param  string|null $domain   The domain.
  @return void
docstring_tokens: Adds a resource .