StackItem.php

Namespace

Drupal\Core\Database\Transaction

File

core/lib/Drupal/Core/Database/Transaction/StackItem.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Core\Database\Transaction;


/**
 * A value object for items on the transaction stack.
 */
final class StackItem {
  
  /**
   * Constructor.
   *
   * @param string $name
   *   The name of the transaction.
   * @param StackItemType $type
   *   The stack item type.
   */
  public function __construct(public readonly string $name, public readonly StackItemType $type) {
  }

}

Classes

Title Deprecated Summary
StackItem A value object for items on the transaction stack.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.