original_string: protected function getEntity($type)
      {
          $entity = isset($this->config[$type]['entity'])
                  ? $this->config[$type]['entity']
                  : '\Cv\Entity\\'. ucfirst(rtrim($type, 's'));
          
          if (is_string($entity)) {
              $this->config[$type]['entity'] = $entity = new $entity();
          }
          return $entity;
      }
code: protected function getEntity($type)
      {
          $entity = isset($this->config[$type]['entity'])
                  ? $this->config[$type]['entity']
                  : '\Cv\Entity\\'. ucfirst(rtrim($type, 's'));
          
          if (is_string($entity)) {
              $this->config[$type]['entity'] = $entity = new $entity();
          }
          return $entity;
      }
code_tokens: protected function getEntity ( $ type ) { $ entity = isset ( $ this -> config [ $ type ] [ 'entity' ] ) ? $ this -> config [ $ type ] [ 'entity' ] : '\Cv\Entity\\' . ucfirst ( rtrim ( $ type , 's' ) ) ; if ( is_string ( $ entity ) ) { $ this -> config [ $ type ] [ 'entity' ] = $ entity = new $ entity ( ) ; } return $ entity ; }
docstring: Gets an entity for education or employment.
  
  @param string $type
  @return \Core\Entity\EntityInterface
docstring_tokens: Gets an entity for education or employment .