private function getTableName($segments)
    {
        $tableName = [];

        foreach ($segments as $segment) {
            if ($this->isConnectingWord($segment)) {
                break;
            }

            $tableName[] = $segment;
        }

        return implode('_', array_reverse($tableName));
    }
private function getTableName($segments)
    {
        $tableName = [];

        foreach ($segments as $segment) {
            if ($this->isConnectingWord($segment)) {
                break;
            }

            $tableName[] = $segment;
        }

        return implode('_', array_reverse($tableName));
    }
private function getTableName ( $ segments ) { $ tableName = [ ] ; foreach ( $ segments as $ segment ) { if ( $ this -> isConnectingWord ( $ segment ) ) { break ; } $ tableName [ ] = $ segment ; } return implode ( '_' , array_reverse ( $ tableName ) ) ; }
Calculate the table name.

@param  array $segments
@return array
Calculate the table name .