for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace eZ\Publish\Core\Event\Content;
use eZ\Publish\API\Repository\Values\Content\Content;
use eZ\Publish\API\Repository\Values\Content\VersionInfo;
use eZ\Publish\Core\Event\AfterEvent;
final class PublishVersionEvent extends AfterEvent
{
* @var \eZ\Publish\API\Repository\Values\Content\Content
private $content;
* @var \eZ\Publish\API\Repository\Values\Content\VersionInfo
private $versionInfo;
* @var string[]
private $translations;
public function __construct(
Content $content,
VersionInfo $versionInfo,
array $translations
) {
$this->content = $content;
$this->versionInfo = $versionInfo;
$this->translations = $translations;
}
public function getContent(): Content
return $this->content;
public function getVersionInfo(): VersionInfo
return $this->versionInfo;
public function getTranslations(): array
return $this->translations;