Passed
Pull Request — master (#195)
by
unknown
07:19
created

getLatestImportIdentifiers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
namespace EWW\Dpf\Session;
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
18
class BulkImportSessionData
19
{
20
    /**
21
     * @var string
22
     */
23
    protected $crossRefSearchField = 'author';
24
25
    /**
26
     * @var string
27
     */
28
    protected $pubMedSearchField = 'author';
29
30
    /**
31
     * @var string
32
     */
33
    protected $crossRefQuery = '';
34
35
    /**
36
     * @var string
37
     */
38
    protected $pubMedQuery = '';
39
40
    /**
41
     * @var array
42
     */
43
    protected $currentMetadataItems = [];
44
45
    /**
46
     * @var int
47
     */
48
    protected $itemsPerPage = 0;
49
50
    /**
51
     * @var array
52
     */
53
    protected $latestImportIdentifiers = [];
54
55
    /**
56
     * Gets the CrossRef search field.
57
     *
58
     * @return string
59
     */
60
    public function getCrossRefSearchField(): string
61
    {
62
        return $this->crossRefSearchField;
63
    }
64
65
    /**
66
     * Sets the CrossRef search field.
67
     *
68
     * @param string $searchField
69
     */
70
    public function setCrossRefSearchField($searchField): void
71
    {
72
        $this->crossRefSearchField = $searchField;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getPubMedSearchField(): string
79
    {
80
        return $this->pubMedSearchField;
81
    }
82
83
    /**
84
     * @param string $pubMedSearchField
85
     */
86
    public function setPubMedSearchField(string $pubMedSearchField): void
87
    {
88
        $this->pubMedSearchField = $pubMedSearchField;
89
    }
90
    
91
    /**
92
     * @return string
93
     */
94
    public function getCrossRefQuery(): string
95
    {
96
        return $this->crossRefQuery;
97
    }
98
99
    /**
100
     * @param string $crossRefQuery
101
     */
102
    public function setCrossRefQuery(string $crossRefQuery): void
103
    {
104
        $this->crossRefQuery = $crossRefQuery;
105
    }
106
107
    /**
108
     * @return string
109
     */
110
    public function getPubMedQuery(): string
111
    {
112
        return $this->pubMedQuery;
113
    }
114
115
    /**
116
     * @param string $pubMedQuery
117
     */
118
    public function setPubMedQuery(string $pubMedQuery): void
119
    {
120
        $this->pubMedQuery = $pubMedQuery;
121
    }
122
123
    /**
124
     * @return array
125
     */
126
    public function getCurrentMetadataItems(): array
127
    {
128
        return $this->currentMetadataItems;
129
    }
130
131
    /**
132
     * @param array $currentMetadataItems
133
     */
134
    public function setCurrentMetadataItems(array $currentMetadataItems): void
135
    {
136
        $this->currentMetadataItems = $currentMetadataItems;
137
    }
138
139
    /**
140
     * Gets the items per page for the list.
141
     *
142
     * @return int
143
     */
144
    public function getItemsPerPage(): int
145
    {
146
        return $this->itemsPerPage;
147
    }
148
149
    /**
150
     * Sets the items per page for the list.
151
     *
152
     * @param int $itemsPerPage
153
     */
154
    public function setItemsPerPage($itemsPerPage): void
155
    {
156
        $this->itemsPerPage = $itemsPerPage;
157
    }
158
159
    /**
160
     * @return array
161
     */
162
    public function getLatestImportIdentifiers(): array
163
    {
164
        return $this->latestImportIdentifiers;
165
    }
166
167
    /**
168
     * @param array $latestImportIdentifiers
169
     */
170
    public function setLatestImportIdentifiers(array $latestImportIdentifiers): void
171
    {
172
        $this->latestImportIdentifiers = $latestImportIdentifiers;
173
    }
174
}