Completed
Push — master ( 735ffd...9b092c )
by Anton
8s
created

CounterParams::getField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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