Page MenuHomeWickedGov Phorge

StashedTranslation.php
No OneTemporary

Size
980 B
Referenced Files
None
Subscribers
None

StashedTranslation.php

<?php
declare( strict_types = 1 );
namespace MediaWiki\Extension\Translate\TranslatorSandbox;
use MediaWiki\Title\Title;
use MediaWiki\User\User;
/**
* Value object for stashed translation which you can construct.
*
* @author Niklas Laxström
* @license GPL-2.0-or-later
* @since 2013.06 (namespaced in 2020.11)
*/
class StashedTranslation {
/** @var User */
protected $user;
/** @var Title */
protected $title;
/** @var string */
protected $value;
/** @var array|null */
protected $metadata;
public function __construct( User $user, Title $title, string $value, ?array $metadata = null ) {
$this->user = $user;
$this->title = $title;
$this->value = $value;
$this->metadata = $metadata;
}
public function getUser(): User {
return $this->user;
}
public function getTitle(): Title {
return $this->title;
}
public function getValue(): string {
return $this->value;
}
public function getMetadata(): ?array {
return $this->metadata;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 09:47 (1 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0b/9d/ec0a8a1ba67826b175cc43b6c135
Default Alt Text
StashedTranslation.php (980 B)

Event Timeline