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.

ClassMap   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 31
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 5

3 Methods

Rating   Name   Duplication   Size   Complexity  
A isValidMap() 0 3 1
A isValid() 0 3 2
A maps() 0 4 1
1
<?php
2
/**
3
 * @package vsc\application\sitemaps
4
 * @author marius orcisk <[email protected]>
5
 * @date 2014.08.07
6
 */
7
namespace vsc\application\sitemaps;
8
9
use vsc\infrastructure\BaseObject as vscObject;
10
11
class ClassMap extends MappingA implements ContentTypeMappingInterface, ResourceMapInterface {
12
	use ProcessorMapTrait;
13
	use ControllerMapTrait;
14
	use ModuleMapTrait;
15
	use ResourceMapTrait;
16
17
	/**
18
	 * @param string $sPath
19
	 * @return bool
20
	 */
21 23
	public static function isValidMap($sPath) {
22 23
		return class_exists($sPath);
23
	}
24
25
	/**
26
	 * @param MappingA $oMap
27
	 * @return bool
28
	 */
29 21
	static public function isValid($oMap) {
30 21
		return (parent::isValid($oMap) && $oMap->getPath() !== '');
31
	}
32
33
	/**
34
	 * @param vscObject $mappedObject
35
	 * @return bool
36
	 */
37 2
	public function maps(vscObject $mappedObject)
38
	{
39 2
		return (get_class($mappedObject) == $this->getPath());
40
	}
41
}
42