Completed
Push — master ( 28cdc3...08c314 )
by Jean-Christophe
01:29
created

UbiquityUtils   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getModelsName() 0 4 1
A getControllerName() 0 4 1
1
<?php
2
3
namespace micro\utils;
4
5
use micro\cache\ClassUtils;
6
7
class UbiquityUtils {
8
	public static function getModelsName($config,$name){
9
		$modelsNS=$config["mvcNS"]["models"];
10
		return ClassUtils::getClassNameWithNS($modelsNS, $name);
11
	}
12
13
	public static function getControllerName($config,$name){
14
		$modelsNS=$config["mvcNS"]["controllers"];
15
		return ClassUtils::getClassNameWithNS($modelsNS, $name);
16
	}
17
}
18