original_string: public function getEntityClass()
      {
          if (!$this->_entityClass) {
              $default = Entity::class;
              $self = get_called_class();
              $parts = explode('\\', $self);
  
              if ($self === __CLASS__ || count($parts) < 3) {
                  return $this->_entityClass = $default;
              }
  
              $alias = Inflector::classify(Inflector::underscore(substr(array_pop($parts), 0, -5)));
              $name = implode('\\', array_slice($parts, 0, -1)) . '\\Entity\\' . $alias;
              if (!class_exists($name)) {
                  return $this->_entityClass = $default;
              }
  
              $class = App::className($name, 'Model/Entity');
              if (!$class) {
                  throw new MissingEntityException([$name]);
              }
  
              $this->_entityClass = $class;
          }
  
          return $this->_entityClass;
      }
code: public function getEntityClass()
      {
          if (!$this->_entityClass) {
              $default = Entity::class;
              $self = get_called_class();
              $parts = explode('\\', $self);
  
              if ($self === __CLASS__ || count($parts) < 3) {
                  return $this->_entityClass = $default;
              }
  
              $alias = Inflector::classify(Inflector::underscore(substr(array_pop($parts), 0, -5)));
              $name = implode('\\', array_slice($parts, 0, -1)) . '\\Entity\\' . $alias;
              if (!class_exists($name)) {
                  return $this->_entityClass = $default;
              }
  
              $class = App::className($name, 'Model/Entity');
              if (!$class) {
                  throw new MissingEntityException([$name]);
              }
  
              $this->_entityClass = $class;
          }
  
          return $this->_entityClass;
      }
code_tokens: public function getEntityClass ( ) { if ( ! $ this -> _entityClass ) { $ default = Entity :: class ; $ self = get_called_class ( ) ; $ parts = explode ( '\\' , $ self ) ; if ( $ self === __CLASS__ || count ( $ parts ) < 3 ) { return $ this -> _entityClass = $ default ; } $ alias = Inflector :: classify ( Inflector :: underscore ( substr ( array_pop ( $ parts ) , 0 , - 5 ) ) ) ; $ name = implode ( '\\' , array_slice ( $ parts , 0 , - 1 ) ) . '\\Entity\\' . $ alias ; if ( ! class_exists ( $ name ) ) { return $ this -> _entityClass = $ default ; } $ class = App :: className ( $ name , 'Model/Entity' ) ; if ( ! $ class ) { throw new MissingEntityException ( [ $ name ] ) ; } $ this -> _entityClass = $ class ; } return $ this -> _entityClass ; }
docstring: Returns the class used to hydrate rows for this table.
  
  @return string
docstring_tokens: Returns the class used to hydrate rows for this table .