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\Role;
use eZ\Publish\API\Repository\Values\User\PolicyCreateStruct;
use eZ\Publish\API\Repository\Values\User\Role;
use eZ\Publish\Core\Event\AfterEvent;
final class AddPolicyEvent extends AfterEvent
{
public const NAME = 'ezplatform.event.role.add_policy';
* @var \eZ\Publish\API\Repository\Values\User\Role
private $role;
* @var \eZ\Publish\API\Repository\Values\User\PolicyCreateStruct
private $policyCreateStruct;
private $updatedRole;
public function __construct(
Role $updatedRole,
Role $role,
PolicyCreateStruct $policyCreateStruct
) {
$this->role = $role;
$this->policyCreateStruct = $policyCreateStruct;
$this->updatedRole = $updatedRole;
}
public function getRole(): Role
return $this->role;
public function getPolicyCreateStruct(): PolicyCreateStruct
return $this->policyCreateStruct;
public function getUpdatedRole(): Role
return $this->updatedRole;