Completed
Pull Request — master (#141)
by Alexander
05:06
created

Outlet::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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