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.
Completed
Push — master ( a11bd1...3fc1f5 )
by Anderson
02:01
created

SearchParams::getParent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace DoctrineElastic\Elastic;
4
5
/**
6
 * Entity class for representation of Elasticsearch api search query
7
 *
8
 * @author
9
 */
10
class SearchParams {
11
12
    /* extrapolating elastic max results, ignoring elastic default as 10 */
13
    const DEFAULT_LIMIT_RESULTS = 1000000000;
14
15
    protected $index;
16
17
    protected $type;
18
19
    protected $parent;
20
21
    protected $body = [];
22
23
    protected $from = 0;
24
25
    protected $size = self::DEFAULT_LIMIT_RESULTS;
26
27
    protected $sort = [];
28
29
    /**
30
     * @return string
31
     */
32
    public function getIndex() {
33
        return $this->index;
34
    }
35
36
    /**
37
     * @param string $index
38
     * @return SearchParams
39
     */
40
    public function setIndex($index) {
41
        $this->index = $index;
42
        return $this;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getType() {
49
        return $this->type;
50
    }
51
52
    /**
53
     * @param string $type
54
     * @return SearchParams
55
     */
56
    public function setType($type) {
57
        $this->type = $type;
58
        return $this;
59
    }
60
61
    /**
62
     * @return array
63
     */
64
    public function getBody() {
65
        return $this->body;
66
    }
67
68
    /**
69
     * @param array $body
70
     * @return SearchParams
71
     */
72
    public function setBody(array $body = []) {
73
        $this->body = $body;
74
        return $this;
75
    }
76
77
    /**
78
     * @return int
79
     */
80
    public function getSize() {
81
        return $this->size;
82
    }
83
84
    /**
85
     * @param int $size
86
     * @return SearchParams
87
     */
88
    public function setSize($size) {
89
        $this->size = $size;
90
        return $this;
91
    }
92
93
    /**
94
     * @return mixed
95
     */
96
    public function getSort() {
97
        return $this->sort;
98
    }
99
100
    /**
101
     * @param array $sort
102
     * @return SearchParams
103
     */
104
    public function setSort(array $sort = []) {
105
        $this->sort = $sort;
106
        return $this;
107
    }
108
109
    /**
110
     * @return int
111
     */
112
    public function getFrom() {
113
        return $this->from;
114
    }
115
116
    /**
117
     * @param int $from
118
     * @return SearchParams
119
     */
120
    public function setFrom($from) {
121
        $this->from = $from;
122
        return $this;
123
    }
124
125
    /**
126
     * @return mixed
127
     */
128
    public function getParent() {
129
        return $this->parent;
130
    }
131
132
    /**
133
     * @param mixed $parent
134
     * @return SearchParams
135
     */
136
    public function setParent($parent) {
137
        $this->parent = $parent;
138
        return $this;
139
    }
140
141
142
    public function isValid() {
143
        return boolval($this->index);
144
    }
145
}