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
$createPath
private
bool
$createPath
$expandMacros
private
bool
$expandMacros
$isXattr
private
bool
$isXattr
$path
private
string
$path
$values
private
array<string|int, mixed>
$values
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
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
Return values
MutateArrayInsertSpec —createPath()
public
createPath(bool $createPath) : MutateArrayInsertSpec
Parameters
- $createPath : bool
Tags
Return values
MutateArrayInsertSpec —expandMacros()
public
expandMacros(bool $expandMacros) : MutateArrayInsertSpec
Parameters
- $expandMacros : bool
Tags
Return values
MutateArrayInsertSpec —xattr()
public
xattr(bool $isXattr) : MutateArrayInsertSpec
Parameters
- $isXattr : bool