| 1 | <?php |
||
| 16 | final class BeforePublishVersionEvent extends BeforeEvent |
||
| 17 | { |
||
| 18 | /** @var \eZ\Publish\API\Repository\Values\Content\VersionInfo */ |
||
| 19 | private $versionInfo; |
||
| 20 | |||
| 21 | /** @var \eZ\Publish\API\Repository\Values\Content\Content|null */ |
||
| 22 | private $content; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string[] |
||
| 26 | */ |
||
| 27 | private $translations; |
||
| 28 | |||
| 29 | public function __construct(VersionInfo $versionInfo, array $translations) |
||
| 34 | |||
| 35 | public function getVersionInfo(): VersionInfo |
||
| 39 | |||
| 40 | public function getTranslations(): array |
||
| 44 | |||
| 45 | public function getContent(): Content |
||
| 53 | |||
| 54 | public function setContent(?Content $content): void |
||
| 58 | |||
| 59 | public function hasContent(): bool |
||
| 63 | } |
||
| 64 |