Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Set.php

function Set::__construct

Constructs a set object of the specified type, optionally with the specified data.

Parameters

string $setType The type or class name associated with this set.:

array<array-key, T> $data The initial items to store in the set.:

Overrides AbstractArray::__construct

File

vendor/ramsey/collection/src/Set.php, line 50

Class

Set
A set is a collection that contains no duplicate elements.

Namespace

Ramsey\Collection

Code

public function __construct(string $setType, array $data = []) {
    parent::__construct($data);
}
RSS feed
Powered by Drupal