Passed
Push — master ( 994262...329e97 )
by
unknown
01:27
created

MissingTranslationCategoryEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 13
ccs 3
cts 5
cp 0.6
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCategory() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Translator\Event;
6
7
final class MissingTranslationCategoryEvent
8
{
9
    private string $category;
10
11
12 1
    public function __construct(string $category)
13
    {
14 1
        $this->category = $category;
15 1
    }
16
17
    public function getCategory(): string
18
    {
19
        return $this->category;
20
    }
21
}
22