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.

TMap::injectGoogleMapMarkers()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Copyright (c) 2015 Petr Olišar (http://olisar.eu)
4
 *
5
 * For the full copyright and license information, please view
6
 * the file LICENSE.md that was distributed with this source code.
7
 */
8
9
namespace Oli\GoogleAPI;
10
11
12
/**
13
 * Description of TMap
14
 *
15
 * @author Petr Olišar <[email protected]>
16
 */
17
trait TMap
18
{
19
20
	/**
21
	 * @var IMapAPI
22
	 */
23
	protected $googleMapAPI;
24
25
	/**
26
	 * @var IMarkers
27
	 */
28
	protected $googleMapMarkers;
29
30
31
	/**
32
	 * @param \Oli\GoogleAPI\IMapAPI $mapApi
33
	 */
34
	public function injectGoogleMapApi(IMapAPI $mapApi)
35
	{
36
		$this->googleMapAPI = $mapApi;
37
	}
38
	
39
	
40
	/**
41
	 * @param \Oli\GoogleAPI\IMarkers $markers
42
	 */
43
	public function injectGoogleMapMarkers(IMarkers $markers)
44
	{
45
		$this->googleMapMarkers = $markers;
46
	}
47
	
48
	
49
	/**
50
	 * @return MapAPI
51
	 */
52
	public function createComponentMap()
53
	{
54
		$map = $this->googleMapAPI->create();
55
		$map->addMarkers($this->googleMapMarkers->create());
56
		return $map;
57
	}
58
	
59
}
60