ContentGroup   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A maxIndex() 0 3 1
1
<?php
2
3
namespace TheIconic\Tracking\GoogleAnalytics\Parameters\ContentGrouping;
4
5
use TheIconic\Tracking\GoogleAnalytics\Parameters\SingleParameter;
6
7
/**
8
 * Class ContentGroup
9
 *
10
 * @link https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cg_
11
 *
12
 * @package TheIconic\Tracking\GoogleAnalytics\Parameters\ContentGroup
13
 */
14
class ContentGroup extends SingleParameter
15
{
16
    /**
17
     * @inheritDoc
18
     *
19
     * @var string
20
     */
21
    protected $name = 'cg:i:';
22
23
    /**
24
     * @inheritDoc
25
     *
26
     * @return int
27
     */
28
    protected function maxIndex()
29
    {
30
        return 5;
31
    }
32
}
33