Documentation

MutateArrayAddUniqueSpec
in package
implements MutateInSpec

Indicates to add a value into an array at a path in a document so long as that value does not already exist in the array.

Interfaces, Classes, Traits and Enums

MutateInSpec
MutateInSpec is an interface for providing subdocument mutation operations.

Table of Contents

$createPath  : bool
$expandMacros  : bool
$isXattr  : bool
$path  : string
$value  : mixed
__construct()  : mixed
build()  : MutateArrayAddUniqueSpec
createPath()  : MutateArrayAddUniqueSpec
expandMacros()  : MutateArrayAddUniqueSpec
xattr()  : MutateArrayAddUniqueSpec

Properties

Methods

__construct()

public __construct(string $path, int|float|bool|string|null $value[, bool $isXattr = false ][, bool $createPath = false ][, bool $expandMacros = false ]) : mixed
Parameters
$path : string
$value : int|float|bool|string|null
$isXattr : bool = false
$createPath : bool = false
$expandMacros : bool = false
Tags
throws
InvalidArgumentException
since
4.0.0
Return values
mixed

        

Search results