protected function hasMinimumRequiredParameters()
    {
        $minimumRequiredParameters = [
            'v' => false,
            'tid' => false,
            'cid' => false,
            'uid' => false,
            't' => false,
        ];

        foreach ($minimumRequiredParameters as $parameterName => $isParamPresent) {
            if (array_key_exists($parameterName, $this->singleParameters)) {
                $minimumRequiredParameters[$parameterName] = true;
            }
        }

        if (!$minimumRequiredParameters['cid'] && $minimumRequiredParameters['uid']) {
            $minimumRequiredParameters['cid'] = true;
        }

        if (!$minimumRequiredParameters['uid'] && $minimumRequiredParameters['cid']) {
            $minimumRequiredParameters['uid'] = true;
        }

        return !in_array(false, $minimumRequiredParameters, true);
    }
protected function hasMinimumRequiredParameters()
    {
        $minimumRequiredParameters = [
            'v' => false,
            'tid' => false,
            'cid' => false,
            'uid' => false,
            't' => false,
        ];

        foreach ($minimumRequiredParameters as $parameterName => $isParamPresent) {
            if (array_key_exists($parameterName, $this->singleParameters)) {
                $minimumRequiredParameters[$parameterName] = true;
            }
        }

        if (!$minimumRequiredParameters['cid'] && $minimumRequiredParameters['uid']) {
            $minimumRequiredParameters['cid'] = true;
        }

        if (!$minimumRequiredParameters['uid'] && $minimumRequiredParameters['cid']) {
            $minimumRequiredParameters['uid'] = true;
        }

        return !in_array(false, $minimumRequiredParameters, true);
    }
protected function hasMinimumRequiredParameters ( ) { $ minimumRequiredParameters = [ 'v' => false , 'tid' => false , 'cid' => false , 'uid' => false , 't' => false , ] ; foreach ( $ minimumRequiredParameters as $ parameterName => $ isParamPresent ) { if ( array_key_exists ( $ parameterName , $ this -> singleParameters ) ) { $ minimumRequiredParameters [ $ parameterName ] = true ; } } if ( ! $ minimumRequiredParameters [ 'cid' ] && $ minimumRequiredParameters [ 'uid' ] ) { $ minimumRequiredParameters [ 'cid' ] = true ; } if ( ! $ minimumRequiredParameters [ 'uid' ] && $ minimumRequiredParameters [ 'cid' ] ) { $ minimumRequiredParameters [ 'uid' ] = true ; } return ! in_array ( false , $ minimumRequiredParameters , true ) ; }
Validates the minimum required parameters for every GA hit are being sent.

@SuppressWarnings(PHPMD.LongVariable)

@return bool
Validates the minimum required parameters for every GA hit are being sent .