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\Location;
use eZ\Publish\API\Repository\Values\Content\Location;
use eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct;
use eZ\Publish\Core\Event\BeforeEvent;
final class BeforeUpdateLocationEvent extends BeforeEvent
{
public const NAME = 'ezplatform.event.location.update.before';
* @var \eZ\Publish\API\Repository\Values\Content\Location
private $location;
* @var \eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct
private $locationUpdateStruct;
public function __construct(
Location $location,
LocationUpdateStruct $locationUpdateStruct
) {
$this->location = $location;
$this->locationUpdateStruct = $locationUpdateStruct;
}
public function getLocation(): Location
return $this->location;
public function getLocationUpdateStruct(): LocationUpdateStruct
return $this->locationUpdateStruct;