original_string: public function mapper($entityName)
      {
          if (!class_exists($entityName)) {
              throw new \Exception('Unable to get mapper for unknown entity class '.$entityName);
          }
          $locator = $this['spot2.locator'];
  
          return $locator->mapper($entityName);
      }
code: public function mapper($entityName)
      {
          if (!class_exists($entityName)) {
              throw new \Exception('Unable to get mapper for unknown entity class '.$entityName);
          }
          $locator = $this['spot2.locator'];
  
          return $locator->mapper($entityName);
      }
code_tokens: public function mapper ( $ entityName ) { if ( ! class_exists ( $ entityName ) ) { throw new \ Exception ( 'Unable to get mapper for unknown entity class ' . $ entityName ) ; } $ locator = $ this [ 'spot2.locator' ] ; return $ locator -> mapper ( $ entityName ) ; }
docstring: Get a mapper for a given entity.
  
  @param string $entityName
  
  @return Spot\Mapper
  
  @author Ronan Chilvers <ronan@d3r.com>
docstring_tokens: Get a mapper for a given entity .