public function __construct(VersionInfo $versionInfo, array $translations)
34
{
35
$this->versionInfo = $versionInfo;
36
$this->translations = $translations;
37
}
38
39
public function getVersionInfo(): VersionInfo
40
{
41
return $this->versionInfo;
42
}
43
44
public function getTranslations(): array
45
{
46
return $this->translations;
47
}
48
49
public function getContent(): Content
50
{
51
if (!$this->hasContent()) {
52
throw new UnexpectedValueException(sprintf('Return value is not set or not a type of %s. Check hasContent() or set it by setContent() before you call getter.', Content::class));
53
}
54
55
return $this->content;
56
}
57
58
public function setContent(?Content $content): void