MethodNameGenerator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getQualifiedMethodName() 0 3 1
1
<?php
2
namespace Kir\FakePDO\Tools;
3
4
class MethodNameGenerator {
5
	/** @var string */
6
	private $className = null;
7
8
	/**
9
	 * @param string $className
10
	 */
11
	public function __construct($className) {
12
		$this->className = $className;
13
	}
14
15
	/**
16
	 * @param string $methodName
17
	 * @return string
18
	 */
19
	public function getQualifiedMethodName($methodName) {
20
		return "{$this->className}::{$methodName}";
21
	}
22
}
23