AddGoalResponse::getGoal()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Metrica\Management\Models;
4
5
use Yandex\Metrica\Management\Models\Goal;
6
use Yandex\Common\Model;
7
8
class AddGoalResponse extends Model
9
{
10
11
    protected $goal = null;
12
13
    protected $mappingClasses = [
14
        'goal' => 'Yandex\Metrica\Management\Models\Goal'
15
    ];
16
17
    protected $propNameMap = [];
18
19
    /**
20
     * Retrieve the goal property
21
     *
22
     * @return Goal|null
23
     */
24 2
    public function getGoal()
25
    {
26 2
        return $this->goal;
27
    }
28
29
    /**
30
     * Set the goal property
31
     *
32
     * @param Goal $goal
33
     * @return $this
34
     */
35 1
    public function setGoal($goal)
36
    {
37 1
        $this->goal = $goal;
38 1
        return $this;
39
    }
40
}
41