original_string: public function addMapper(ResultMapperInterface $mapper)
      {
          if ($mapper instanceof self) {
              return $this->addMappers($mapper->mappers);
          }
  
          $this->mappers[] = $mapper;
      
          return $this;
      }
code: public function addMapper(ResultMapperInterface $mapper)
      {
          if ($mapper instanceof self) {
              return $this->addMappers($mapper->mappers);
          }
  
          $this->mappers[] = $mapper;
      
          return $this;
      }
code_tokens: public function addMapper ( ResultMapperInterface $ mapper ) { if ( $ mapper instanceof self ) { return $ this -> addMappers ( $ mapper -> mappers ) ; } $ this -> mappers [ ] = $ mapper ; return $ this ; }
docstring: Adds a Mapper to the chain.
  
  @param ResultMapperInterface $mapper
docstring_tokens: Adds a Mapper to the chain .