original_string: protected function _getTableAlias(EntityInterface $entity)
      {
          $alias = $entity->source();
          if (mb_strpos($alias, '.') !== false) {
              $parts = explode('.', $alias);
              $alias = array_pop($parts);
          }
  
          return strtolower($alias);
      }
code: protected function _getTableAlias(EntityInterface $entity)
      {
          $alias = $entity->source();
          if (mb_strpos($alias, '.') !== false) {
              $parts = explode('.', $alias);
              $alias = array_pop($parts);
          }
  
          return strtolower($alias);
      }
code_tokens: protected function _getTableAlias ( EntityInterface $ entity ) { $ alias = $ entity -> source ( ) ; if ( mb_strpos ( $ alias , '.' ) !== false ) { $ parts = explode ( '.' , $ alias ) ; $ alias = array_pop ( $ parts ) ; } return strtolower ( $ alias ) ; }
docstring: Get table alias for the given entity.
  
  @param \Cake\Datasource\EntityInterface $entity The entity
  @return string Table alias
docstring_tokens: Get table alias for the given entity .