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\ContentInfo;
use eZ\Publish\API\Repository\Values\Content\VersionInfo;
use eZ\Publish\Core\Event\AfterEvent;
final class DeleteRelationEvent extends AfterEvent
{
public const NAME = 'ezplatform.event.relation.delete';
* @var \eZ\Publish\API\Repository\Values\Content\VersionInfo
private $sourceVersion;
* @var \eZ\Publish\API\Repository\Values\Content\ContentInfo
private $destinationContent;
public function __construct(
VersionInfo $sourceVersion,
ContentInfo $destinationContent
) {
$this->sourceVersion = $sourceVersion;
$this->destinationContent = $destinationContent;
}
public function getSourceVersion(): VersionInfo
return $this->sourceVersion;
public function getDestinationContent(): ContentInfo
return $this->destinationContent;