trait Set (View source)

Methods

static void
add(...$values)

Add a value to the set.

static void
remove(...$values)

Remove a value from the set.

static bool
contains(...$values)

Determines if the set contains a value.

static array
values()

Get the values as an array.

Details

static void add(...$values)

Add a value to the set.

Parameters

...$values

Return Value

void

static void remove(...$values)

Remove a value from the set.

Parameters

...$values

Return Value

void

static bool contains(...$values)

Determines if the set contains a value.

Parameters

...$values

Return Value

bool

static array values()

Get the values as an array.

Return Value

array