DataSift\Storyplayer\DefinitionLib\TestEnvironment_RolesValidator::validateMustBeKeyValuePairs PHP Method

validateMustBeKeyValuePairs() protected method

make sure that the roles are simple key / value pairs
protected validateMustBeKeyValuePairs ( array $roles ) : void
$roles array the roles to check
return void
    protected function validateMustBeKeyValuePairs($roles)
    {
        foreach ($roles as $key => $value) {
            if (!is_string($value)) {
                throw new E4xx_IllegalRole($this->host->getTestEnvironmentName(), $this->host->getGroupId(), $this->host->getHostId(), $value);
            }
        }
    }