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 ( 20c89b...8e64c8 )
by Florian
03:16
created

ResultSetAdapter   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 2
Bugs 0 Features 2
Metric Value
c 2
b 0
f 2
dl 0
loc 56
wmc 5
lcom 1
cbo 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setFacets() 0 3 1
A getFacets() 0 3 1
A getResults() 0 3 1
A setResults() 0 3 1
A getExcerpt() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Stinger Entity Search package.
5
 *
6
 * (c) Oliver Kotte <[email protected]>
7
 * (c) Florian Meyer <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
namespace StingerSoft\EntitySearchBundle\Model;
13
14
use StingerSoft\EntitySearchBundle\Model\Result\FacetSet;
15
16
class ResultSetAdapter implements ResultSet {
17
18
	/**
19
	 *
20
	 * @var FacetSet
21
	 */
22
	protected $facets = null;
23
24
	/**
25
	 *
26
	 * @var Document[]
27
	 */
28
	protected $results = array();
29
30
	public function setFacets(FacetSet $facets) {
31
		$this->facets = $facets;
32
	}
33
34
	/**
35
	 *
36
	 * {@inheritDoc}
37
	 *
38
	 * @see \StingerSoft\EntitySearchBundle\Model\ResultSet::getFacets()
39
	 */
40
	public function getFacets() {
41
		return $this->facets;
42
	}
43
44
	/**
45
	 *
46
	 * {@inheritDoc}
47
	 *
48
	 * @see \StingerSoft\EntitySearchBundle\Model\ResultSet::getResults()
49
	 */
50
	public function getResults($offset = 0, $limit = null) {
51
		return array_slice($this->results, $offset, $limit);
52
	}
53
54
	/**
55
	 *
56
	 * @param Document[] $results        	
57
	 */
58
	public function setResults(array $results) {
59
		$this->results = $results;
60
	}
61
62
	/**
63
	 *
64
	 * {@inheritDoc}
65
	 *
66
	 * @see \StingerSoft\EntitySearchBundle\Model\ResultSet::getExcerpt()
67
	 */
68
	public function getExcerpt(Document $document) {
69
		return null;
70
	}
71
}