DataSift\Storyplayer\DefinitionLib\TestEnvironment_GroupDefinition::getHostsAsConfig PHP Method

getHostsAsConfig() public method

return our hosts, as SPv2.0-style config tree
public getHostsAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject
return DataSift\Stone\ObjectLib\BaseObject
    public function getHostsAsConfig()
    {
        // our return value
        $retval = new BaseObject();
        // ask our hosts to convert themselves
        foreach ($this->hosts as $hostDef) {
            $hostConf = $hostDef->getHostAsConfig();
            $retval->{$hostConf->name} = $hostConf;
        }
        // all done
        return $retval;
    }