RequestData::getIdentificationKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the core-library package.
5
 *
6
 * (c) 2019 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\Core\ThirdParty\Adoria\Model;
13
14
use DateTime;
15
16
/**
17
 * Request data.
18
 *
19
 * @author webeweb <https://github.com/webeweb/>
20
 * @package WBW\Library\Core\ThirdParty\Adoria\Model
21
 */
22
class RequestData {
23
24
    /**
25
     * Analytic code.
26
     *
27
     * @var string|null
28
     */
29
    private $analyticCode;
30
31
    /**
32
     * Buy date max.
33
     *
34
     * @var DateTime|null
35
     */
36
    private $buyDateMax;
37
38
    /**
39
     * Identification key.
40
     *
41
     * @var string|null
42
     */
43
    private $identificationKey;
44
45
    /**
46
     * Constructor.
47
     */
48
    public function __construct() {
49
        // NOTHING TO DO
50
    }
51
52
    /**
53
     * Get the analytic code.
54
     *
55
     * @return string|null Returns the analytic code.
56
     */
57
    public function getAnalyticCode(): ?string {
58
        return $this->analyticCode;
59
    }
60
61
    /**
62
     * Get the buy date max.
63
     *
64
     * @return DateTime|null Returns the buy date max.
65
     */
66
    public function getBuyDateMax(): ?DateTime {
67
        return $this->buyDateMax;
68
    }
69
70
    /**
71
     * Get the identification key.
72
     *
73
     * @return string|null Returns the identification key.
74
     */
75
    public function getIdentificationKey(): ?string {
76
        return $this->identificationKey;
77
    }
78
79
    /**
80
     * Set the analytic code.
81
     *
82
     * @param string|null $analyticCode The analytic code.
83
     * @return RequestData Returns this request data.
84
     */
85
    public function setAnalyticCode(?string $analyticCode): RequestData {
86
        $this->analyticCode = $analyticCode;
87
        return $this;
88
    }
89
90
    /**
91
     * Set the buy date max.
92
     *
93
     * @param DateTime|null $buyDateMax The buy date max.
94
     * @return RequestData Returns this request data.
95
     */
96
    public function setBuyDateMax(?DateTime $buyDateMax): RequestData {
97
        $this->buyDateMax = $buyDateMax;
98
        return $this;
99
    }
100
101
    /**
102
     * Set the identification key.
103
     *
104
     * @param string|null $identificationKey The identification key.
105
     * @return RequestData Returns this request data.
106
     */
107
    public function setIdentificationKey(?string $identificationKey): RequestData {
108
        $this->identificationKey = $identificationKey;
109
        return $this;
110
    }
111
}
112