src/ImboClient/ImboClient.php
public function addResourceGroup($groupName, array $resources) {
        $this->validateResourceGroupName($groupName);

        if ($this->resourceGroupExists($groupName)) {
            throw new InvalidArgumentException(
                'Resource group with name "' . $groupName . '" already exists'
            );
        }

        return $this->editResourceGroup($groupName, $resources);
    }
public function addResourceGroup($groupName, array $resources) {
        $this->validateResourceGroupName($groupName);

        if ($this->resourceGroupExists($groupName)) {
            throw new InvalidArgumentException(
                'Resource group with name "' . $groupName . '" already exists'
            );
        }

        return $this->editResourceGroup($groupName, $resources);
    }
public function addResourceGroup ( $ groupName , array $ resources ) { $ this -> validateResourceGroupName ( $ groupName ) ; if ( $ this -> resourceGroupExists ( $ groupName ) ) { throw new InvalidArgumentException ( 'Resource group with name "' . $ groupName . '" already exists' ) ; } return $ this -> editResourceGroup ( $ groupName , $ resources ) ; }
Add a new resource group

@param string $groupName Name of the group to create
@param array $resources Array of resource names the group should contain
@return Model
@throws InvalidArgumentException Throw when group name is invalid or group already exists
Add a new resource group