public function getTable()
{
// get our table name from the constructor
$tableName = $this->args[0];
$targetEnv = $this->st->getTestEnvironmentName();
// what are we doing?
$log = usingLog()->startAction("get '{$tableName}' table from runtime config");
// get the table config
$tables = $this->getAllTables();
// make sure we have a table
if (!isset($tables->{$tableName})) {
$tables->{$tableName} = new BaseObject();
}
if (!isset($tables->{$tableName}->{$targetEnv})) {
$tables->{$tableName}->{$targetEnv} = new BaseObject();
}
// all done
$log->endAction();
return $tables->{$tableName}->{$targetEnv};
}