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