Documentation

MutateArrayInsertSpec
in package
implements MutateInSpec

Indicates to insert a value into an array at a path in a document.

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
$values  : array<string|int, mixed>
__construct()  : mixed
build()  : MutateArrayInsertSpec
createPath()  : MutateArrayInsertSpec
expandMacros()  : MutateArrayInsertSpec
xattr()  : MutateArrayInsertSpec

Properties

Methods

__construct()

public __construct(string $path, array<string|int, mixed> $values[, bool $isXattr = false ][, bool $createPath = false ][, bool $expandMacros = false ]) : mixed
Parameters
$path : string
$values : array<string|int, mixed>
$isXattr : bool = false
$createPath : bool = false
$expandMacros : bool = false
Tags
since
4.0.0
Return values
mixed

build()

public static build(string $path, array<string|int, mixed> $values[, bool $isXattr = false ][, bool $createPath = false ][, bool $expandMacros = false ]) : MutateArrayInsertSpec
Parameters
$path : string
$values : array<string|int, mixed>
$isXattr : bool = false
$createPath : bool = false
$expandMacros : bool = false
Tags
since
4.0.0
Return values
MutateArrayInsertSpec

        

Search results