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\ContentCreateStruct;
use eZ\Publish\Core\Event\AfterEvent;
final class CreateContentEvent extends AfterEvent
{
public const NAME = 'ezplatform.event.content.create';
* @var \eZ\Publish\API\Repository\Values\Content\ContentCreateStruct
private $contentCreateStruct;
* @var array
private $locationCreateStructs;
* @var \eZ\Publish\API\Repository\Values\Content\Content
private $content;
public function __construct(
Content $content,
ContentCreateStruct $contentCreateStruct,
array $locationCreateStructs
) {
$this->content = $content;
$this->contentCreateStruct = $contentCreateStruct;
$this->locationCreateStructs = $locationCreateStructs;
}
public function getContentCreateStruct(): ContentCreateStruct
return $this->contentCreateStruct;
public function getLocationCreateStructs(): array
return $this->locationCreateStructs;
public function getContent(): Content
return $this->content;