blob: 773d3069393f8ae55e97b325a3c0cb2c08537c75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<?php
/**
* Value object for stashed translation.
*
* @file
* @author Niklas Laxström
* @license GPL-2.0-or-later
*/
/**
* Value object for stashed translation which you can construct.
* @since 2013.06
*/
class StashedTranslation {
protected $user;
protected $title;
protected $value;
protected $metadata;
public function __construct( User $user, Title $title, $value, array $metadata = null ) {
$this->user = $user;
$this->title = $title;
$this->value = $value;
$this->metadata = $metadata;
}
/**
* @return User
*/
public function getUser() {
return $this->user;
}
/**
* @return Title
*/
public function getTitle() {
return $this->title;
}
/**
* @return string
*/
public function getValue() {
return $this->value;
}
/**
* @return array
*/
public function getMetadata() {
return $this->metadata;
}
}
|