blob: 3eaf1f3b7d1940e8b51dca90ff81b027968088dd (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<?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 {
/** @var User */
protected $user;
/** @var Title */
protected $title;
/** @var string */
protected $value;
/** @var array|null */
protected $metadata;
/**
* @param User $user
* @param Title $title
* @param string $value
* @param array|null $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|null
*/
public function getMetadata() {
return $this->metadata;
}
}
|