Completed
Pull Request — master (#139)
by
unknown
04:18
created

getRegionDelimiterPosition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Market\Content\Models;
4
5
use Yandex\Market\Content\Models\Base\PagedModel;
6
7
class ResponseModelOffersGet extends PagedModel
8
{
9
    protected $regionDelimiterPosition = null;
10
11
    protected $filters = null;
12
13
    protected $metadata = null;
14
15
    /**
16
     * Constructor
17
     *
18
     * @param array $data
19
     */
20 1
    public function __construct($data = array())
21
    {
22 1
        parent::__construct($data['offers']);
23 1
    }
24
25
    protected $mappingClasses = [
26
        'items' => 'Yandex\Market\Content\Models\Offers',
27
        'filters' => 'Yandex\Market\Content\Models\Filters'
28
    ];
29
30
    /**
31
     * Retrieve the $regionDelimiterPosition property
32
     *
33
     * @return int|null
34
     */
35 1
    public function getRegionDelimiterPosition()
36
    {
37 1
        return $this->regionDelimiterPosition;
38
    }
39
40
    /**
41
     * Retrieve the metadata property
42
     *
43
     * @return Offers|null
44
     */
45
    public function getMetadata()
46
    {
47
        return $this->metadata;
48
    }
49
}
50