CounterParams   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 55
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCallback() 0 4 1
A setCallback() 0 5 1
A getField() 0 4 1
A setField() 0 5 1
1
<?php
2
3
namespace Yandex\Metrica\Management\Models;
4
5
use Yandex\Common\Model;
6
7
class CounterParams extends Model
8
{
9
10
    protected $callback = null;
11
12
    protected $field = null;
13
14
    protected $mappingClasses = [];
15
16
    protected $propNameMap = [];
17
18
    /**
19
     * Retrieve the callback property
20
     *
21
     * @return string|null
22
     */
23
    public function getCallback()
24
    {
25
        return $this->callback;
26
    }
27
28
    /**
29
     * Set the callback property
30
     *
31
     * @param string $callback
32
     * @return $this
33
     */
34
    public function setCallback($callback)
35
    {
36
        $this->callback = $callback;
37
        return $this;
38
    }
39
40
    /**
41
     * Retrieve the field property
42
     *
43
     * @return string|null
44
     */
45
    public function getField()
46
    {
47
        return $this->field;
48
    }
49
50
    /**
51
     * Set the field property
52
     *
53
     * @param string $field
54
     * @return $this
55
     */
56
    public function setField($field)
57
    {
58
        $this->field = $field;
59
        return $this;
60
    }
61
}
62