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

Service::getCallback()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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