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\ObjectState;
use eZ\Publish\API\Repository\Values\ObjectState\ObjectState;
use eZ\Publish\Core\Event\BeforeEvent;
final class BeforeDeleteObjectStateEvent extends BeforeEvent
{
public const NAME = 'ezplatform.event.object_state.delete.before';
* @var \eZ\Publish\API\Repository\Values\ObjectState\ObjectState
private $objectState;
public function __construct(ObjectState $objectState)
$this->objectState = $objectState;
}
public function getObjectState(): ObjectState
return $this->objectState;