Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#835)
by
unknown
03:54
created

MetadataSubentry::setSorting()   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 1
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * (c) Kitodo. Key to digital objects e.V. <[email protected]>
5
 *
6
 * This file is part of the Kitodo and TYPO3 projects.
7
 *
8
 * @license GNU General Public License version 3 or later.
9
 * For the full copyright and license information, please read the
10
 * LICENSE.txt file that was distributed with this source code.
11
 */
12
13
namespace Kitodo\Dlf\Domain\Model;
14
15
/**
16
 * This specifies a way how a metadatum (``tx_dlf_metadata``) may be encoded in a specific data format (``tx_dlf_format``).
17
 *
18
 * For instance, the title of a document may be obtained from either the MODS
19
 * title field, or from the TEIHDR caption. This is modeled as two ``tx_dlf_metadaformat``
20
 * that refer to the same ``tx_dlf_metadata`` but different ``tx_dlf_format``.
21
 *
22
 * This contains the xpath expressions on the model 'Metadata'.
23
 *
24
 * @package TYPO3
25
 * @subpackage dlf
26
 * @access public
27
 */
28
class MetadataSubentry extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
29
{
30
    /**
31
     * @var \Kitodo\Dlf\Domain\Model\MetadataSubentry
32
     */
33
    protected $l18nParent;
34
35
    /**
36
     * @var int
37
     */
38
    protected $sorting;
39
40
    /**
41
     * @var string
42
     */
43
    protected $label;
44
45
    /**
46
     * @var string
47
     */
48
    protected $indexName;
49
50
    /**
51
     * XPath/JSONPath expression to extract the metadatum (relative to the data format root).
52
     * TODO
53
     *
54
     * @var string
55
     */
56
    protected $xpath;
57
58
    /**
59
     * @var string
60
     */
61
    protected $defaultValue;
62
63
    /**
64
     * @var string
65
     */
66
    protected $wrap;
67
68
    /**
69
     * @return \Kitodo\Dlf\Domain\Model\MetadataSubentry
70
     */
71
    public function getL18nParent(): MetadataSubentry
72
    {
73
        return $this->l18nParent;
74
    }
75
76
    /**
77
     * @param \Kitodo\Dlf\Domain\Model\MetadataSubentry $l18nParent
78
     */
79
    public function setL18nParent(MetadataSubentry $l18nParent): void
80
    {
81
        $this->l18nParent = $l18nParent;
82
    }
83
84
    /**
85
     * @return int
86
     */
87
    public function getSorting(): int
88
    {
89
        return $this->sorting;
90
    }
91
92
    /**
93
     * @param int $sorting
94
     */
95
    public function setSorting(int $sorting): void
96
    {
97
        $this->sorting = $sorting;
98
    }
99
100
    /**
101
     * @return string
102
     */
103
    public function getLabel(): string
104
    {
105
        return $this->label;
106
    }
107
108
    /**
109
     * @param string $label
110
     */
111
    public function setLabel(string $label): void
112
    {
113
        $this->label = $label;
114
    }
115
116
    /**
117
     * @return string
118
     */
119
    public function getIndexName(): string
120
    {
121
        return $this->indexName;
122
    }
123
124
    /**
125
     * @param string $indexName
126
     */
127
    public function setIndexName(string $indexName): void
128
    {
129
        $this->indexName = $indexName;
130
    }
131
132
    /**
133
     * @return string
134
     */
135
    public function getXpath(): string
136
    {
137
        return $this->xpath;
138
    }
139
140
    /**
141
     * @param string $xpath
142
     */
143
    public function setXpath(string $xpath): void
144
    {
145
        $this->xpath = $xpath;
146
    }
147
148
    /**
149
     * @return string
150
     */
151
    public function getDefaultValue(): string
152
    {
153
        return $this->defaultValue;
154
    }
155
156
    /**
157
     * @param string $defaultValue
158
     */
159
    public function setDefaultValue(string $defaultValue): void
160
    {
161
        $this->defaultValue = $defaultValue;
162
    }
163
164
    /**
165
     * @return string
166
     */
167
    public function getWrap(): string
168
    {
169
        return $this->wrap;
170
    }
171
172
    /**
173
     * @param string $wrap
174
     */
175
    public function setWrap(string $wrap): void
176
    {
177
        $this->wrap = $wrap;
178
    }
179
}
180