original_string: protected function getHydrator($type)
      {
          $hydrator = isset($this->config[$type]['hydrator'])
                    ? $this->config[$type]['hydrator']
                    : new EntityHydrator();
          
          if (is_string($hydrator)) {
              $this->config[$type]['hydrator'] = $hydrator = new $hydrator();
          }
          return $hydrator;
      }
code: protected function getHydrator($type)
      {
          $hydrator = isset($this->config[$type]['hydrator'])
                    ? $this->config[$type]['hydrator']
                    : new EntityHydrator();
          
          if (is_string($hydrator)) {
              $this->config[$type]['hydrator'] = $hydrator = new $hydrator();
          }
          return $hydrator;
      }
code_tokens: protected function getHydrator ( $ type ) { $ hydrator = isset ( $ this -> config [ $ type ] [ 'hydrator' ] ) ? $ this -> config [ $ type ] [ 'hydrator' ] : new EntityHydrator ( ) ; if ( is_string ( $ hydrator ) ) { $ this -> config [ $ type ] [ 'hydrator' ] = $ hydrator = new $ hydrator ( ) ; } return $ hydrator ; }
docstring: Gets a hydrator
  @param string $type
  @return \Core\Entity\Hydrator\EntityHydrator
docstring_tokens: Gets a hydrator