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

MissingTranslationEvent::getLanguage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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