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

ResponseModelOffersGet   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 71.43%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 43
ccs 5
cts 7
cp 0.7143
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRegionDelimiterPosition() 0 4 1
A getMetadata() 0 4 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