Completed
Push — master ( 23286c...3055fa )
by Ron
02:51
created

Service   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getKey() 0 3 1
A __toString() 0 3 1
1
<?php
2
namespace Kir\Services\Cmd\Dispatcher\Dispatchers\DefaultDispatcher;
3
4
class Service {
5
	/** @var string */
6
	private $key;
7
	
8
	/**
9
	 * @param string $key
10
	 */
11
	public function __construct(string $key) {
12
		$this->key = $key;
13
	}
14
	
15
	/**
16
	 * @return string
17
	 */
18
	public function getKey(): string {
19
		return $this->key;
20
	}
21
	
22
	/**
23
	 * @return string
24
	 */
25
	public function __toString(): string {
26
		return $this->key;
27
	}
28
}