public function __construct(VersionInfo $versionInfo, array $translations)
30
{
31
$this->versionInfo = $versionInfo;
32
$this->translations = $translations;
33
}
34
35
public function getVersionInfo(): VersionInfo
36
{
37
return $this->versionInfo;
38
}
39
40
public function getTranslations(): array
41
{
42
return $this->translations;
43
}
44
45
public function getContent(): Content
46
{
47
if (!$this->hasContent()) {
48
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));
49
}
50
51
return $this->content;
52
}
53
54
public function setContent(?Content $content): void