Completed
Push — master ( eec90d...2946e6 )
by Dmitriy
11s
created

DatesRange   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 55
ccs 10
cts 10
cp 1
rs 10
wmc 4
lcom 0
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setFromDate() 0 5 1
A setToDate() 0 5 1
A getFromDate() 0 4 1
A getToDate() 0 4 1
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class DatesRange extends Model
8
{
9
10
    protected $fromDate = null;
11
12
    protected $toDate = null;
13
14
    protected $mappingClasses = [];
15
16
    protected $propNameMap = [];
17
18
    /**
19
     * Retrieve the fromDate property
20
     *
21
     * @return string|null
22
     */
23 1
    public function getFromDate()
24
    {
25 1
        return $this->fromDate;
26
    }
27
28
    /**
29
     * Set the fromDate property
30
     *
31
     * @param string $fromDate
32
     * @return $this
33
     */
34 1
    public function setFromDate($fromDate)
35
    {
36 1
        $this->fromDate = $fromDate;
37 1
        return $this;
38
    }
39
40
    /**
41
     * Retrieve the toDate property
42
     *
43
     * @return string|null
44
     */
45 1
    public function getToDate()
46
    {
47 1
        return $this->toDate;
48
    }
49
50
    /**
51
     * Set the toDate property
52
     *
53
     * @param string $toDate
54
     * @return $this
55
     */
56 1
    public function setToDate($toDate)
57
    {
58 1
        $this->toDate = $toDate;
59 1
        return $this;
60
    }
61
}
62