Passed
Push — master ( 82aaad...ac7049 )
by Roberto
04:19
created

GoogleMapsResultsCollection::parseItem()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * Copyright (c) 2018 - present
4
 * Google Maps PHP - GoogleMapsResultsCollection.php
5
 * author: Roberto Belotti - [email protected]
6
 * web : robertobelotti.com, github.com/biscolab
7
 * Initial version created on: 5/9/2018
8
 * MIT license: https://github.com/biscolab/google-maps-php/blob/master/LICENSE
9
 */
10
11
namespace Biscolab\GoogleMaps\Http;
12
13
use Biscolab\GoogleMaps\Abstracts\AbstractCollection;
14
15
/**
16
 * Class GoogleMapsResultsCollection
17
 * @package Biscolab\GoogleMaps\Http
18
 */
19
class GoogleMapsResultsCollection extends AbstractCollection {
20
21
	/**
22
	 * @var string
23
	 */
24
	protected $item_class = GoogleMapsResult::class;
25
26
	/**
27
	 * @param $item
28
	 *
29
	 * @return GeocodingResult
0 ignored issues
show
Bug introduced by
The type Biscolab\GoogleMaps\Http\GeocodingResult was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
30
	 */
31
	protected function parseItem($item) {
32
33
		$item_class = $this->item_class;
34
35
		return new $item_class($item);
36
	}
37
}