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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 43
c 0
b 0
f 0
wmc 3
lcom 1
cbo 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A injectGoogleMapApi() 0 4 1
A injectGoogleMapMarkers() 0 4 1
A createComponentMap() 0 6 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