<?php

declare(strict_types=1);

namespace Drupal\asset\Event;

use Drupal\Component\EventDispatcher\Event;
use Drupal\asset\Entity\AssetInterface;

/**
 * Event that is fired by asset save, delete and clone operations.
 */
class AssetEvent extends Event {

  const PRESAVE = 'asset_presave';
  const INSERT = 'asset_insert';
  const UPDATE = 'asset_update';
  const DELETE = 'asset_delete';

  public function __construct(
    public AssetInterface $asset,
  ) {}

}
