blob: c2c05bdac406a2f3b816f943581363cdfe1db1be (
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
|
<?php
/**
* Value object for stashed translation.
*
* @file
* @author Niklas Laxström
* @license GPL-2.0+
*/
/**
* 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;
}
}
|