ContentGroup::maxIndex()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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