Passed
Push — develop ( 8c6599...c9bdac )
by Stan
04:29
created

Metric::__construct()   A

Complexity

Conditions 4
Paths 5

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 4

Importance

Changes 0
Metric Value
cc 4
eloc 5
nc 5
nop 0
dl 0
loc 10
ccs 6
cts 6
cp 1
crap 4
rs 9.2
c 0
b 0
f 0
1
<?php
2
3
namespace Krenor\Prometheus\Contracts;
4
5
use Tightenco\Collect\Support\Collection;
6
7
interface Metric
8
{
9
    /**
10
     * @return string
11
     */
12
    public function key(): string;
13
14
    /**
15
     * @return string
16
     */
17
    public function type(): string;
18
19
    /**
20
     * @return string
21
     */
22
    public function namespace(): string;
23
24
    /**
25
     * @return string
26
     */
27
    public function name(): string;
28
29
    /**
30
     * @return string
31
     */
32
    public function description(): string;
33
34
    /**
35
     * @return Collection
36
     */
37
    public function labels(): Collection;
38
39
    /**
40
     * @return Storage
41
     */
42
    public static function storage(): Storage;
43
}
44