class-wpml-tp-translation.php
716 Bytes
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
<?php
class WPML_TP_Translation {
/** @var string */
private $field;
/** @var string */
private $source;
/** @var string */
private $target;
/**
* @param string $field
* @param string $source
* @param string $target
*/
public function __construct( $field, $source, $target ) {
$this->field = $field;
$this->source = $source;
$this->target = $target;
}
/**
* @return string
*/
public function get_field() {
return $this->field;
}
/**
* @return string
*/
public function get_source() {
return $this->source;
}
/**
* @return string
*/
public function get_target() {
return $this->target;
}
public function to_array() {
return get_object_vars( $this );
}
}