Completed
Push — master ( d5e216...b4d558 )
by Alexander
12:07
created

MissingTranslationEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
eloc 10
c 1
b 0
f 1
dl 0
loc 44
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLanguage() 0 3 1
A __construct() 0 5 1
A getCategory() 0 3 1
A getMessage() 0 3 1
1
<?php
2
3
namespace Yiisoft\I18n\Event;
4
5
class MissingTranslationEvent
6
{
7
    /**
8
     * @var string
9
     */
10
    private $category;
11
    /**
12
     * @var string
13
     */
14
    private $language;
15
    /**
16
     * @var string
17
     */
18
    private $message;
19
20
    public function __construct(string $category, string $language, string $message)
21
    {
22
        $this->category = $category;
23
        $this->language = $language;
24
        $this->message = $message;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getCategory(): string
31
    {
32
        return $this->category;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getLanguage(): string
39
    {
40
        return $this->language;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getMessage(): string
47
    {
48
        return $this->message;
49
    }
50
}
51