1 | <?php |
||
16 | final class BeforePublishVersionEvent extends BeforeEvent |
||
17 | { |
||
18 | /** |
||
19 | * @var \eZ\Publish\API\Repository\Values\Content\VersionInfo |
||
20 | */ |
||
21 | private $versionInfo; |
||
22 | |||
23 | /** |
||
24 | * @var \eZ\Publish\API\Repository\Values\Content\Content|null |
||
25 | */ |
||
26 | private $content; |
||
27 | |||
28 | /** |
||
29 | * @var string[] |
||
30 | */ |
||
31 | private $translations; |
||
32 | |||
33 | public function __construct(VersionInfo $versionInfo, array $translations) |
||
38 | |||
39 | public function getVersionInfo(): VersionInfo |
||
43 | |||
44 | public function getTranslations(): array |
||
48 | |||
49 | public function getContent(): Content |
||
57 | |||
58 | public function setContent(?Content $content): void |
||
62 | |||
63 | public function hasContent(): bool |
||
67 | } |
||
68 |