Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
StashedTranslation.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\TranslatorSandbox;
5
6use Title;
7use User;
8
18 protected $user;
20 protected $title;
22 protected $value;
24 protected $metadata;
25
26 public function __construct( User $user, Title $title, string $value, array $metadata = null ) {
27 $this->user = $user;
28 $this->title = $title;
29 $this->value = $value;
30 $this->metadata = $metadata;
31 }
32
33 public function getUser(): User {
34 return $this->user;
35 }
36
37 public function getTitle(): Title {
38 return $this->title;
39 }
40
41 public function getValue(): string {
42 return $this->value;
43 }
44
45 public function getMetadata(): ?array {
46 return $this->metadata;
47 }
48}
Value object for stashed translation which you can construct.