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

UbiquityUtils::getModelsName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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