public function getTableNameAndAlias($tableAliasOrName)
    {
        if (isset($this->aliases[$tableAliasOrName])) {
            return [$this->aliases[$tableAliasOrName], $tableAliasOrName];
        }

        return [$tableAliasOrName, null];
    }
public function getTableNameAndAlias($tableAliasOrName)
    {
        if (isset($this->aliases[$tableAliasOrName])) {
            return [$this->aliases[$tableAliasOrName], $tableAliasOrName];
        }

        return [$tableAliasOrName, null];
    }
public function getTableNameAndAlias ( $ tableAliasOrName ) { if ( isset ( $ this -> aliases [ $ tableAliasOrName ] ) ) { return [ $ this -> aliases [ $ tableAliasOrName ] , $ tableAliasOrName ] ; } return [ $ tableAliasOrName , null ] ; }
Returns the table name and alias based on a table alias or name.
Use this method to get the details of a table name that comes in a clause,
which can be either a table name or an alias name.

@param  string            $tableAliasOrName
@return array($tableName, $tableAlias)
Returns the table name and alias based on a table alias or name . Use this method to get the details of a table name that comes in a clause which can be either a table name or an alias name .